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

'just getting the URL' of a comparison problems and suggestions #37

Open
jypeter opened this issue Nov 29, 2019 · 1 comment
Open

'just getting the URL' of a comparison problems and suggestions #37

jypeter opened this issue Nov 29, 2019 · 1 comment

Comments

@jypeter
Copy link

jypeter commented Nov 29, 2019

I very often forget the URL of a comparison I want to have a look at, and I follow the instructions (by memory) of Just get the url in order to print the URL.

Unfortunately, instead of typing for example
A) python run_C-ESM-EP.py PMIP4_6kf3_ref url
I often scroll back in my history and just add url at the end of the command (it's a stupid stupid mistake, but I have done it several times), for example
B) python run_C-ESM-EP.py PMIP4_6kf3_ref MainTimeSeries url

'B' case (when I do this stupid stupid mistake)

In the B case, I end up starting the full comparison again, instead of just getting the URL!
I can of course kill everything with
qstat -u my_login| grep my_login | awk '{print $1}' | xargs qdel
but if I do that, I end up with a comparison main page where all the links will point to xxx is running... (comparison: PMIP4_6kf3_ref), even for finished comparisons

Would it be possible for run_C-ESM-EP.py to just ignore all the parameters (except url) after the comparison directory name, if url is one of the options, and just print the url?

'A' case (what the user is supposed to do)

In that case, I do get the URL I'm looking for, but run_C-ESM-EP.py will still print lots of things I don't need before the URL and the storage directory, for example

[jypmce@ciclad-ng C-ESM-EP]$ python run_C-ESM-EP.py PMIP4_6kf3_ref url
Skipping component  Atmosphere_Surface_180  which diagnostic file is not readable
  -- component =  MainTimeSeries
    -> queue = h12
cd /home/jypmce/C-ESM-EP/PMIP4_6kf3_ref/MainTimeSeries ; jobID=$(qsub -m e -M [email protected] -q h12 -j eo -v component=MainTimeSeries,comparison=PMIP4_6kf3_ref,WD=${PWD},cesmep_frontpage=https://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/jypmce/C-ESM-EP/PMIP4_6kf3_ref_jypmce/C-ESM-EP_PMIP4_6kf3_ref.html -N MainTimeSeries_PMIP4_6kf3_ref_C-ESM-EP ../job_C-ESM-EP.sh) ; qsub -W "depend=afternotok:$jobID" -v atlas_pathfilename=/prodigfs/ipslfs/dods/jypmce//C-ESM-EP/PMIP4_6kf3_ref_jypmce/MainTimeSeries/atlas_MainTimeSeries_PMIP4_6kf3_ref.html,WD=${PWD},component=MainTimeSeries,comparison=PMIP4_6kf3_ref ../../share/fp_template/copy_html_error_page.sh ; cd -
  -- component =  Atmosphere_Surface
    -> queue = h12

[... A LOT of stuff]

-- The CliMAF ESM Evaluation Platform atlas is available here:
--
--   https://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/jypmce/C-ESM-EP/PMIP4_6kf3_ref_jypmce/C-ESM-EP_PMIP4_6kf3_ref.html
--
--
-- The html file is here:
-- /prodigfs/ipslfs/dods/jypmce/C-ESM-EP/PMIP4_6kf3_ref_jypmce/C-ESM-EP_PMIP4_6kf3_ref.html

Would it be possible for run_C-ESM-EP.py to be less verbose in the url case?

Or it may be easier and make more sense to make a new script that would just print the URL and the matching directory, for example
python get_C-ESM-EP_url.py PMIP4_6kf3_ref

@jservonnat
Copy link
Owner

@jypeter that sounds great, propose a PR!

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

2 participants