Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • kis_tools kis_tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sdc
  • kis_toolskis_tools
  • Issues
  • #306

Closed
Open
Created Mar 17, 2022 by Carl Schaffer@schafferOwner

Graceful exit for gris_lot_cont_corr

Plot cont corr should exit with a warning if no files are found:

Wed Mar 16 01:43:35 CET 2022
running gris_plot_cont_corr --store /dat/sdc/gris/20191003/context_data/*cont_corr*sav

 __  ___  __       _______.   .___________.  ______     ______    __          _______.
|  |/  / |  |     /       |   |           | /  __  \   /  __  \  |  |        /       |
|  '  /  |  |    |   (----`   `---|  |----`|  |  |  | |  |  |  | |  |       |   (----`
|    <   |  |     \   \           |  |     |  |  |  | |  |  |  | |  |        \   \    
|  .  \  |  | .----)   |          |  |     |  `--'  | |  `--'  | |  `----.----)   |   
|__|\__\ |__| |_______/           |__|      \______/   \______/  |_______|_______/    

Traceback (most recent call last):
  File "/home/schaffer/anaconda3/envs/sdc/bin/gris_plot_cont_corr", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/dat/schaffer/projects/kis_tools/bin/gris_plot_cont_corr", line 27, in <module>
    fig = plot_cont_corr(i)
  File "/dat/schaffer/projects/kis_tools/kis_tools/gris/plotting.py", line 140, in plot_cont_corr
    data = readsav(path)
  File "/home/schaffer/anaconda3/envs/sdc/lib/python3.10/site-packages/scipy/io/idl.py", line 738, in readsav
    f = open(file_name, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/dat/sdc/gris/20191003/context_data/*cont_corr*sav'
/var/lib/condor/execute/dir_326475/condor_exec.exe: line 105: [: ==: unary operator expected
Assignee
Assign to
Time tracking