-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EddiesObservations cannot be imported from py_eddy_tracker.observations #3
Comments
The correct command is EddyTracking yamlfile
Le ven. 27 déc. 2019 à 13:03, evanmason <notifications@github.com> a écrit :
… The Wiki needs to be updated.
The section for creating a tracking recipe presently fails as follows:
In [7]: from py_eddy_tracker.observations import EddiesObservations as Model
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-7-77527e386807> in <module>
----> 1 from py_eddy_tracker.observations import EddiesObservations as Model
ImportError: cannot import name 'EddiesObservations' from 'py_eddy_tracker.observations' (/home/emason/VENVP3/lib/python3.7/site-packages/pyEddyTracker-3.0.0-py3.7.egg/py_eddy_tracker/observations/__init__.py)
This seems to work:
In [2]: from py_eddy_tracker.observations.observation import
EddiesObservations as Model but I then get the following when trying to
follow the Wiki:
(VENVP3) ***@***.*** global4eddytracking]$ EddyTracking my_tracking.py my_tracking.yaml
usage: Tool to use identification step to compute tracking [-h]
[-v LOGGING_LEVEL]
[--correspondance_in CORRESPONDANCE_IN]
[--correspondance_out CORRESPONDANCE_OUT]
[--save_correspondance_and_stop]
[--blank_period BLANK_PERIOD]
yaml_file
Tool to use identification step to compute tracking: error: unrecognized arguments: my_tracking.yaml
(VENVP3) ***@***.*** global4eddytracking]$
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=AIS7AZJBHKOPJSKA2ULOV6DQ2XVIPA5CNFSM4J73DSJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IC3I7YQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIS7AZIXZEQ3TIG5FHTJU2TQ2XVIPANCNFSM4J73DSJQ>
.
|
Ok, so the Wiki should be updated to reflect that. Is it no longer possible to add a 'tracking recipe', or is that now done within the yaml? |
Is it the file 'tracking.yaml' in share? That is 2 years old. Using that I get the following error:
Two files are produced: My yaml file contains:
|
So I updated all PET dependencies and that solved the issue for the missing Cyclonic.nc. I don't know which dependency was the culprit. |
The Wiki needs to be updated.
The section for creating a tracking recipe presently fails as follows:
This seems to work:
In [2]: from py_eddy_tracker.observations.observation import EddiesObservations as Model
but I then get the following when trying to follow the Wiki:The text was updated successfully, but these errors were encountered: