diff --git a/qutil/matlab.py b/qutil/matlab.py index a081866b82e67b8b041c0dec1fc3465c57216b9f..d11c8b03c2f658307d97bb523ace5c56bffccfc1 100644 --- a/qutil/matlab.py +++ b/qutil/matlab.py @@ -446,13 +446,14 @@ def _parse_orthogonal_qupulse_scan(scan_path: str, engine: 'matlab.engine.Matlab # filling the output arrays (could also be more dynamic) qupulse_rngs = np.full((len(list(all_axes.keys())), 2), np.nan).astype(float) - qupulse_npoints_list = np.full(len(list(all_axes.keys())), np.nan).astype(int) + qupulse_npoints_list = np.full(len(list(all_axes.keys())), np.nan).astype(float) qupulse_setchans = list(all_axes.keys()) for i, c in enumerate(qupulse_setchans): qupulse_rngs[i][0] = selected_kws['start'][c] qupulse_rngs[i][1] = selected_kws['stop'][c] qupulse_npoints_list[i] = selected_kws['N'][c] + qupulse_npoints_list = qupulse_npoints_list.astype(int) # overflow warning return list(qupulse_rngs), list(qupulse_npoints_list), list(qupulse_setchans), dict( channel_mapping=awg_program['channel_mapping'], global_transformation=awg_program['global_transformation'] @@ -563,9 +564,10 @@ def load_special_measure_with_matlab_engine(file_name: os.PathLike, pass except matlab.engine.MatlabExecutionError as e: - warnings.warn( - f"The used trafofns are not understood. And applying them to the extracted ranges and stuff is not implemented.") - warnings.warn(f"matlab.engine.MatlabExecutionError: {str(e)}") + pass + # warnings.warn( + # f"The used trafofns are not understood. And applying them to the extracted ranges and stuff is not implemented.") + # warnings.warn(f"matlab.engine.MatlabExecutionError: {str(e)}") # Special case: for Ran's data TODO: migrate to a new function? # x: AWG only, y: DAC/AWG, channel 1/2/3/4 -> ATSV/time/SET left/SET right