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

Possibly change the name_in_html link string generation in run_C-ESM-EP.py #45

Open
jypeter opened this issue Feb 18, 2021 · 0 comments

Comments

@jypeter
Copy link

jypeter commented Feb 18, 2021

The way the the name_in_html string is generated in run_C-ESM-EP.py is a bit complicated and was not working as expected in my case, because I'm using the following in the component/diagnostics_*.py files

atlas_head_title = "Atmosphere Surface " + extra_head_title

We should probably talk about this. I have changed my version of the code to only use the component string, i.e the name of the component directory

    # content.splitlines()
    # module_title = None
    # for tmpline in content.splitlines():
    #     if 'atlas_head_title' in str.split(tmpline, '=')[0]:
    #         if '"' in tmpline:
    #             sep = '"'
    #         if "'" in tmpline:
    #             sep = "'"
    #         module_title = str.split(tmpline, sep)[1]
    # if module_title:
    #     name_in_html = module_title
    # else:
    #     name_in_html = component
    name_in_html = component.replace('_', ' ')

So, if I have a PMIP4_0k_ref_all comparison directory with the Atmosphere_Surface_IPSL-CM6A-LR Atmosphere_Surface_CESM2 Atmosphere_Surface_MPI-ESM1-2-LR component sub-directories, I get this kind of html frontpage

Comparison setup: PMIP4_0k_ref_all
   Atmosphere Surface IPSL-CM6A-LR
   Atmosphere Surface CESM2
   Atmosphere Surface MPI-ESM1-2-LR
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

1 participant