qkitgroup / qkit

Qkit framework
GNU General Public License v2.0
43 stars 46 forks source link

Traceback for spectroscopy measure 2D and 3D #55

Closed TimWolz closed 6 years ago

TimWolz commented 6 years ago

During 2D and 3D measurments in spectroscopy, probably also in measure_td and transport?, no full traceback is provided, which makes debugging absolutely tedious. grafik

Schneider1 commented 6 years ago

This comes from the very crude except Exception as e in spectroscopy.py:644 https://github.com/qkitgroup/qkit/blob/da5c13d33cc488c24173cd8f8752ad10c0c29e6f/qkit/measure/spectroscopy/spectroscopy.py#L644

I suggest that the user should catch any error if he wants to run measurements in a loop and we simply remove the except block while maintaining the finally block.

rotzinger commented 6 years ago

Is this appropriately answered ?