Skip to content
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

bug in updated Tracking.py (?) #9

Closed
annesophiefortin opened this issue Jun 16, 2020 · 0 comments
Closed

bug in updated Tracking.py (?) #9

annesophiefortin opened this issue Jun 16, 2020 · 0 comments

Comments

@annesophiefortin
Copy link

I have updated my py-eddy-tracker to have all the new examples (thank you a lot for that, it is very useful).
But now, when I run python Tracking.py tracking.yaml, I get the following error message:

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  config = yaml_load(stream)
Traceback (most recent call last):
  File "/fs/homeu1/eccc/mrd/rpnenv/asf000/data/ords/py-eddy-tracker/build/scripts-3.6/EddyTracking", line 176, in <module>
    CORRESPONDANCES.track()
  File "/home/ords/mrd/rpnenv/asf000/miniconda3/envs/virtenv_eddy/lib/python3.6/site-packages/pyEddyTracker-3.0.0-py3.6.egg/py_eddy_tracker/tracking.py", line 326, in track
    self.swap_dataset(self.datasets[first_dataset - 1])
  File "/home/ords/mrd/rpnenv/asf000/miniconda3/envs/virtenv_eddy/lib/python3.6/site-packages/pyEddyTracker-3.0.0-py3.6.egg/py_eddy_tracker/tracking.py", line 155, in swap_dataset
    self.current_obs = self.class_method.load_file(dataset, raw_data=raw_data)
  File "/home/ords/mrd/rpnenv/asf000/miniconda3/envs/virtenv_eddy/lib/python3.6/site-packages/pyEddyTracker-3.0.0-py3.6.egg/py_eddy_tracker/observations/observation.py", line 419, in load_file
    if filename.endswith(".zarr"):
TypeError: endswith first arg must be bytes or a tuple of bytes, not str

Here is my tracking.yaml file:

DIAGNOSTIC_TYPE: "ADT"

PATHS:
  # Files produces with EddyIdentification
  FILES_PATTERN: /home/asf000/data/ords/Eddy/CONTROLE_kch_latlon0.25_preprocessed/Anticyclonic_*.nc
  # FILES_PATTERN: /home/asf000/data/ords/Eddy/CONTROLE_kch_latlon0.25_preprocessed/Cyclonic_*.nc

  # Path for saving of outputs
  SAVE_DIR: "/home/asf000/data/ords/tracking/minlife28days/CONTROLE_kch_latlon0.25_preprocessed/"

# Minimum number of observations to store eddy
TRACK_DURATION_MIN: 28
VIRTUAL_LENGTH_MAX: 0
AntSimi added a commit that referenced this issue Jun 17, 2020
@AntSimi AntSimi closed this as completed Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants