Conversation
Add a test runner script which runs any units tests using nosetests (there currently aren't any) and will eventually run PEP8 tests. This will run on Travis CI after visiting https://travis-ci.org/profile and enabling it for the repo. In Travis CI, we need to use system site packages for numpy and scipy, see: http://danielnouri.org/notes/2012/11/23/use-apt-get-to-install-python-dependencies-for-travis-ci/ For Travis to try to install the right packages (not numpy/scipy), create two requirements files: `requirements/_common.txt` and `requirements/_numpy_and_scipy.txt`. As a developer, you can install `./requirements.txt`. As Travis, you can install `./requirements_for_travis.txt` In the `.travis.yml` file we also use the environment variables for ATLAS, BLAS etc as suggested by Sam in the README: ``` export LAPACK=/usr/lib/liblapack.so export ATLAS=/usr/lib/libatlas.so export BLAS=/usr/lib/libblas.so ```
- tide.py - constituents.py - astro.py - nodal_corrections.py http://legacy.python.org/dev/peps/pep-0008/
|
Hello! Sorry to bother you... How can I make these changes in the version I get via "pip install pytides"? I am trying to run the example on python 3.8 and getting the error ModuleNotFoundError: No module named 'tide' (in init.py) Thank you fro any help! |
Actually, I was able to go into my directory through anaconda and edit the files with the above changes directly. Thank you for making this! |
|
Hello! So, I have this issue, and I downloaded your files, but it still gave me errors. But I have no idea how to solve. Thanks in advance! |
Fix import local file to support python 3.7
init.py:
from . import tide
from . import astro
from . import constituent
from . import nodal_corrections
constituent.py:
from . import nodal_corrections as nc
tide.py:
from .astro import astro
from . import constituent
Fix method error (reduce). In python 3.7, function reduce located in package functools. Add following command to constituent.py:
from functools import reduce
pytides.zip