pgierz / esm_analysis

Other
1 stars 0 forks source link

Permission Error when making filemarker for top of experiment #1

Closed pgierz closed 4 years ago

pgierz commented 4 years ago

Description

It turns out that there is a permission error when you try to mark an experiment that isn't yours (duh).

What I Did

Enter the top-level directory of your experiment: /work/ba0989/a270077/CMIP6_PMIP4/a270073/CMIP6/CMIP_PMIP/dynveg_true/1percCO2/
Making marker file .top_of_exp_tree in /work/ba0989/a270077/CMIP6_PMIP4/a270073/CMIP6/CMIP_PMIP/dynveg_true/1percCO2
Press Enter to continue, Ctrl-C to canel...
Traceback (most recent call last):
  File "/pf/a/a270077/.local/bin/esm_analysis", line 11, in <module>
    load_entry_point('esm-analysis', 'console_scripts', 'esm_analysis')()
  File "/sw/rhel6-x64/conda/anaconda3-bleeding_edge/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/sw/rhel6-x64/conda/anaconda3-bleeding_edge/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/sw/rhel6-x64/conda/anaconda3-bleeding_edge/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/sw/rhel6-x64/conda/anaconda3-bleeding_edge/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/sw/rhel6-x64/conda/anaconda3-bleeding_edge/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/mnt/lustre01/pf/a/a270077/Code/esm_analysis/esm_analysis/cli.py", line 44, in fldmean
    analyzer = EsmAnalysis(preferred_analysis_dir=preferred_analysis_dir)
  File "/mnt/lustre01/pf/a/a270077/Code/esm_analysis/esm_analysis/esm_analysis.py", line 109, in __init__
    with open(self.EXP_BASE + "/.top_of_exp_tree", "w") as f:
PermissionError: [Errno 13] Permission denied: '/work/ba0989/a270077/CMIP6_PMIP4/a270073/CMIP6/CMIP_PMIP/dynveg_true/1percCO2//.top_of_exp_tree'