Bug #1893
download_geometry.py fails in MAUS trunk
0%
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?
Updated by Bayes, Ryan over 6 years ago
There have been no changes to the code that should produce an error like the one you show here. There was a recent change to the CDB version between v2.5.0 and v2.6.0 (I think) to handle the corrections (i.e. alignment) so that might be the problem. There was also a trivial change to the trunk recently but that was only in the "ParentFileCreation.xsl" and not in anything that would cause error here.
I just tested the line that you quoted using v2.6.1 (with the updated CDB) and I saw no errors. What version of MAUS were you using and did you rebuild the third party libraries?
Updated by Rogers, Chris over 6 years ago
- Status changed from Open to Rejected
Apologies, my cdb version was out of date. It looks okay now.