boutproject / boutdata

GNU Lesser General Public License v3.0
0 stars 2 forks source link

Avoid bare except #100

Closed dschwoerer closed 10 months ago

dschwoerer commented 1 year ago

@bendudson I think that should behave similar and avoid the exception.

In what other cases did you get an exception? I am worried that there might be cases where we can write it, but BOUT++ will not be happy. I think it would to fail in the python code than in BOUT++ ...

bendudson commented 10 months ago

Thanks @dschwoerer Sorry I missed this PR. The except was to handle cases where hist_hi can be a scalar (in old dump files) or a vector (in new dump files).