Bug #1893
download_geometry.py fails in MAUS trunk
Start date:
11 November 2016
Due date:
% Done:
0%
Estimated time:
Workflow:
New Issue
Description
Not sure if this is CDB or geometry code. I do
python ${MAUS_ROOT_DIR}/bin/utilities/download_geometry.py --geometry_download_by run_number --geometry_download_directory ./ --geometry_download_run 08470 --cdb_download_url "http://cdb.mice.rl.ac.uk/cdb/"
and get
Traceback (most recent call last): File "/home/cr67/MAUS/maus_merge/bin/utilities/download_geometry.py", line 106, in <module> main() File "/home/cr67/MAUS/maus_merge/bin/utilities/download_geometry.py", line 54, in main (configuration.geometry_download_run_number, gdml_cache) File "/home/cr67/MAUS/maus_merge/src/common_py/geometry/GDMLtoCDB.py", line 302, in download_geometry_by_run self.download_coolingchannel_for_run(run_num, download_path) File "/home/cr67/MAUS/maus_merge/src/common_py/geometry/GDMLtoCDB.py", line 405, in download_coolingchannel_for_run coolingchannel_cdb.get_coolingchannel_for_run(run_id) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/cdb/_coolingchannel.py", line 136, in get_coolingchannel_for_run return self._get_magnets(xml) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/cdb/_coolingchannel.py", line 216, in _get_magnets result = self._parse_cooling_channel_xml(str(xml))[0]['magnets'] File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/cdb/_coolingchannel.py", line 225, in _parse_cooling_channel_xml parseString(xml, self._coolingchannel_handler) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/xml/sax/__init__.py", line 49, in parseString parser.parse(inpsrc) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/xml/sax/expatreader.py", line 301, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/cdb/_coolingchannel.py", line 269, in startElement self._add_cc(attrs) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/cdb/_coolingchannel.py", line 316, in _add_cc _get_date_from_string(attrs.get('validuntiltime', ''))) File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/cdb/_base.py", line 245, in _get_date_from_string exception) cdb._exceptions.CdbPermanentError: ERROR - timestamp should be in the format yyyy-mm-dd hh:mm:ss[.fffffffff] found
This works in MAUS v2.5.0. Was there a UI change or a cdb version change?