-
Notifications
You must be signed in to change notification settings - Fork 55
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
ValueError: Invalid format string #240
Comments
Which version of python did you use? |
3.8.19 |
I can't reproduce error on unix platform |
I think this function "strftime" works differently between Windows and Unix. When I run this in Mac, similar error also emerged. So I try to rewrite the the grid.py as:
and the "def write_file" in observation.py as:
I don't think it is good, but a compromise for windows/mac. Furthermore, this change may also cause other potential issues (but I haven't met yet). Maybe changing the system to Unix could solve a lot of similar issues. |
When I run the example for identification:
EddyId nrt_global_allsat_phy_l4_20220301_20220307.nc 20220301 adt ugos vgos longitude latitude pyeddy/test/ -v DEBUG
I got this error:
Traceback (most recent call last):
File "\?\C:\Users\DLX.conda\envs\cyc\Scripts\EddyId-script.py", line 33, in
sys.exit(load_entry_point('pyEddyTracker==3.6.1+12.gc7430ce', 'console_scripts', 'EddyId')())
File "C:\Users\DLX.conda\envs\cyc\lib\site-packages\py_eddy_tracker\appli\grid.py", line 152, in eddy_id
out_name = date.strftime("%(path)s/%(sign_type)s_%Y%m%dT%H%M%S.nc")
ValueError: Invalid format string
Do you have any suggestions?
Thanks
The text was updated successfully, but these errors were encountered: