-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels