Project

General

Profile

Bug #1085

download_geometry.py fails with filename

Added by Rogers, Chris about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Littlefield, Matthew
Category:
Geometry
Target version:
Start date:
01 August 2012
Due date:
% Done:

100%

Estimated time:
Workflow:
New Issue

Description

Try:

/home/cr67/MAUS/maus_merge/bin/utilities/download_geometry.py -geometry_download_run_number 4065 -geometry_download_directory ./ -verbose_level 0

and the download works okay
Try:
mkdir download
/home/cr67/MAUS/maus_merge/bin/utilities/download_geometry.py -geometry_download_run_number 4065 -geometry_download_directory ./download -verbose_level 0

I get an error like:
geometry.zip not a gdml or xml file - ignored
FileList.txt not a gdml or xml file - ignored
Traceback (most recent call last):
  File "/home/cr67/MAUS/maus_merge/bin/utilities/download_geometry.py", line 80, in <module>
    main()
  File "/home/cr67/MAUS/maus_merge/bin/utilities/download_geometry.py", line 70, in main
    gdmls.format()
  File "/home/cr67/MAUS/maus_merge/src/common_py/geometry/GDMLFormatter.py", line 265, in format
    self.insert_materials_ref(self.txt_file)
  File "/home/cr67/MAUS/maus_merge/src/common_py/geometry/GDMLFormatter.py", line 210, in insert_materials_ref
    fout = open(os.path.join(self.path_out, gdmlfile), 'w')
IOError: [Errno 2] No such file or directory: u'./download/./download/FastradModel.gdml'

Somehow the download directory is getting appended twice, making an error.

Also available in: Atom PDF