XML parser barfs if 0 tectonic events are defined
ihowson opened this issue · 1 comments
ihowson commented
<tectonic>
<disp3d>0</disp3d>
<events>0</events>
</tectonic>
crashes with
File "pyBadlands/pyBadlands/forcing/xmlParser.py", line 386, in _get_XmL_Data
if tmpTime[0,0] > self.tStart:
IndexError: if tmpTime[0,0] > self.tStart:
index 0 is out of bounds for axis 0 with size 0
IndexError: index 0 is out of bounds for axis 0 with size 0
tristan-salles commented
This issue has been fixed. The user needs to define at least 1 tectonic event in the XmL file otherwise a ValueError is given when parsing the XmL