qkitgroup / qkit

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

measure_td fails if sample.mspec does not exist #68

Closed fr34q closed 5 years ago

fr34q commented 5 years ago

measure_td will throw an exception if sample.mspec is not defined even if it is not used during execution (assignment at the beginning) https://github.com/qkitgroup/qkit/blob/8a1f8b74e9e65ed32361a2815eab0a32c24888ee/qkit/measure/timedomain/measure_td.py#L43

Workaround: in sample object define sample.mspec = None

Should be either directly used from sample object where necessary or catched with try/except