GCClassic icon indicating copy to clipboard operation
GCClassic copied to clipboard

download_data.py fails if dryrun log filename contains uppercase characters

Open ihough opened this issue 4 months ago • 0 comments

Your name

Ian Hough

Your affiliation

Université Grenoble Alpes

What happened? What did you expect to happen?

When using the download_data.py script to download input data from a dryrun simulation, the script fails if the dryrun log filename contains uppercase characters.

What are the steps to reproduce the bug?

To reproduce, from a configured run dir on a case-sensitive file system:

./gcclassic --dryrun | tee Log.dryrun
./download_data.py Log.dryrun washu

The output will be something like:

Traceback (most recent call last):
  File "/home/PROJECTS/pr-geoschem/gcclassic-runs/gc_4x5_merra2_fullchem/./download_data.py", line 782, in <module>
    main()
    ~~~~^^
  File "/home/PROJECTS/pr-geoschem/gcclassic-runs/gc_4x5_merra2_fullchem/./download_data.py", line 778, in main
    download_the_data(parse_args())
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/home/PROJECTS/pr-geoschem/gcclassic-runs/gc_4x5_merra2_fullchem/./download_data.py", line 661, in download_the_data
    paths = extract_pathnames_from_log(args)
  File "/home/PROJECTS/pr-geoschem/gcclassic-runs/gc_4x5_merra2_fullchem/./download_data.py", line 110, in extract_pathnames_from_log
    with open(dryrun_log, "r", encoding="UTF-8") as ifile:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'log.dryrun'

Please attach any relevant configuration and log files.

No response

What GCClassic version were you using?

14.4.3

What environment were you running GCClassic on?

Local cluster

What compiler and version were you using?

gcc 14.1.0, gfortran 14.1.0

Will you be addressing this bug yourself?

Yes

Additional information

No response

ihough avatar Oct 10 '24 09:10 ihough