cherenkov-plenoscope / instrument_response_function

Simulate the ACP response for observations of the gamma-ray and cosmic-ray sky.
GNU General Public License v3.0
0 stars 0 forks source link

NotADirectoryError #3

Closed dneise closed 7 years ago

dneise commented 7 years ago

Have you maybe seen a similar error before and know by chance what I did wrong?

this call:

acp_effective_area 
  -s hosts 
  -c effective_area/acp_effective_area/resources/50m_acp/gamma_steering_card.txt 
  -o foo 
  -n 1 
  -a effective_area/acp_effective_area/resources/50m_acp/lightfield_calibration 
  -p effective_area/acp_effective_area/resources/50m_acp/propagation_config.xml 
  -m mctracer/build/mctPropagate

Lead to this exception:

[2017-01-11 17:58:52,176] launcher  INFO    SCOOP 0.7 1.1 on linux using Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)], API: 1013
[2017-01-11 17:58:52,176] launcher  INFO    Deploying 4 worker(s) over 1 host(s).
[2017-01-11 17:58:52,177] launcher  INFO    Worker distribution: 
[2017-01-11 17:58:52,177] launcher  INFO       localhost:   3 + origin
Traceback (most recent call last):
  File "/home/dneise/anaconda3/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/dneise/anaconda3/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/bootstrap/__main__.py", line 302, in <module>
    b.main()
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/bootstrap/__main__.py", line 92, in main
    self.run()
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/bootstrap/__main__.py", line 290, in run
    futures_startup()
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/bootstrap/__main__.py", line 271, in futures_startup
    run_name="__main__"
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/futures.py", line 64, in _startup
    result = _controller.switch(rootFuture, *args, **kargs)
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/_control.py", line 253, in runController
    raise future.exceptionValue
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/_control.py", line 127, in runFuture
    future.resultValue = future.callable(*future.args, **future.kargs)
  File "/home/dneise/anaconda3/lib/python3.5/runpy.py", line 254, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "/home/dneise/anaconda3/lib/python3.5/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/home/dneise/anaconda3/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/dneise/acp/effective_area/acp_effective_area/acp_effective_area.py", line 65, in <module>
    simulation_instructions))
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/futures.py", line 102, in _mapGenerator
    for future in _waitAll(*futures):
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/futures.py", line 358, in _waitAll
    for f in _waitAny(future):
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/futures.py", line 335, in _waitAny
    raise childFuture.exceptionValue
  File "/home/dneise/anaconda3/lib/python3.5/site-packages/scoop/_control.py", line 127, in runFuture
    future.resultValue = future.callable(*future.args, **future.kargs)
  File "/home/dneise/acp/effective_area/acp_effective_area/simulation.py", line 85, in simulate_acp_response
    'run_'+str(cfg['current_run']['number'])+'.json.gz'))
  File "/home/dneise/acp/effective_area/acp_effective_area/simulation.py", line 27, in analyse_acp_response
    run = pl.Run(acp_response_path)
  File "/home/dneise/acp/plenopy/plenopy/Run.py", line 27, in __init__
    raise NotADirectoryError(self.path)
NotADirectoryError: /tmp/acp_effective_area_n6o77jzt/acp_response.acp
[2017-01-11 17:59:31,543] launcher  (127.0.0.1:40264) INFO    Root process is done.
[2017-01-11 17:59:31,543] launcher  (127.0.0.1:40264) INFO    Finished cleaning spawned subprocesses.
dneise commented 7 years ago

I poked a bit around ... thought I had found something ... but that was my own stupidity ... so I deleted that entry again.

I forgot to say earlier: I does nicely create that folder ... but then at some point it tidies up (deletes) the folder and prints that execption.

No in order to see what happens I executed:

while true ; do ll ; sleep 0.1 ; done

in that tmp_dir in order to see what is happening there, these are the last two outputs:

total 1768
drwx------  2 dneise dneise    4096 Jan 11 18:34 ./
drwxrwxrwt 16 root   root      4096 Jan 11 18:34 ../
-r--r--r--  1 dneise dneise 1700236 Jan 11 18:35 airshower.evtio
-rw-rw-r--  1 dneise dneise      71 Jan 11 18:34 airshower.evtio.stderr
-rw-rw-r--  1 dneise dneise   90557 Jan 11 18:35 airshower.evtio.stdout
total 1792
drwx------  2 dneise dneise    4096 Jan 11 18:34 ./
drwxrwxrwt 16 root   root      4096 Jan 11 18:34 ../
-rw-rw-r--  1 dneise dneise 1705292 Jan 11 18:35 airshower.evtio
-rw-rw-r--  1 dneise dneise     153 Jan 11 18:35 airshower.evtio.stderr
-rw-rw-r--  1 dneise dneise  111927 Jan 11 18:35 airshower.evtio.stdout

so airshower.eventio nicely grows to a certain point, then stderr grows a bit ... also stdout grows a bit ... and then its over ...

Not sure how to debug that further.

dneise commented 7 years ago

Okay so I used mctPropagate but I should have used: mctPlenoscopePropagation