geoschem / gcpy

Python toolkit for GEOS-Chem. Contains basic plotting scripts, plus the suite of GEOS-Chem benchmarking utilities.
https://gcpy.readthedocs.io
Other
51 stars 24 forks source link

Replace whitespace with underscores in benchmark plot/table version labels and file names #316

Open yantosca opened 5 months ago

yantosca commented 5 months ago

Name and Institution (Required)

Name: Bob Yantosca Institution: Harvard + GCST

Confirm you have reviewed the following documentation

New GCPy feature or discussion

We propose replacing spaces and tabs with "_" characters in benchmark plot and table file names and version strings. Currently, it is possible to specify a version string with spaces, e.g.:

data:
  ref:
    gcc:
      version: gcc 14.2.0 rc 0
      ...
    gchp:
      version: gchp 14.2.0 rc 0
  ...
  dev:
    gcc:
      version: gcc 14.2.0 rc 2
      ...
    gchp:
      version: gchp 14.2.0 rc 2
       ...

and this would result in several file names for benchmark plots and tables having spaces in them.

yantosca commented 4 months ago

NOTE: PR #319 contains a new function named replace_whitespace that will strip whitespace from labels and file names. It has been applied to some of the newer benchmark scripts but needs to be applied to all benchmark scripts.