@@ -1152,6 +1152,27 @@ fn get_scan_event_activation_type(handle: i32, scan_number: i32, index: i32) ->
11521152 }
11531153}
11541154
1155+
1156+ #[ pyfunction]
1157+ fn get_scan_event_isolation_width ( handle : i32 , scan_number : i32 , index : i32 ) -> PyResult < f64 > {
1158+ let lib = get_lib ( ) ?;
1159+ unsafe {
1160+ let func: Symbol < unsafe extern "C" fn ( i32 , i32 , i32 ) -> f64 > = lib. get ( b"get_scan_event_isolation_width" )
1161+ . map_err ( |e| PyErr :: new :: < pyo3:: exceptions:: PyRuntimeError , _ > ( format ! ( "get function get_scan_event_isolation_width: {}" , e) ) ) ?;
1162+ Ok ( func ( handle, scan_number, index) )
1163+ }
1164+ }
1165+
1166+ #[ pyfunction]
1167+ fn get_scan_event_isolation_width_offset ( handle : i32 , scan_number : i32 , index : i32 ) -> PyResult < f64 > {
1168+ let lib = get_lib ( ) ?;
1169+ unsafe {
1170+ let func: Symbol < unsafe extern "C" fn ( i32 , i32 , i32 ) -> f64 > = lib. get ( b"get_scan_event_isolation_width_offset" )
1171+ . map_err ( |e| PyErr :: new :: < pyo3:: exceptions:: PyRuntimeError , _ > ( format ! ( "get function get_scan_event_isolation_width_offset: {}" , e) ) ) ?;
1172+ Ok ( func ( handle, scan_number, index) )
1173+ }
1174+ }
1175+
11551176#[ pyfunction]
11561177fn get_scan_event_collision_energy ( handle : i32 , scan_number : i32 , index : i32 ) -> PyResult < f64 > {
11571178 let lib = get_lib ( ) ?;
@@ -1760,6 +1781,8 @@ fn native_fisher_py_backend(m: &Bound<'_, PyModule>) -> PyResult<()> {
17601781 m. add_function ( wrap_pyfunction ! ( get_scan_event_mass_count, m) ?) ?;
17611782 m. add_function ( wrap_pyfunction ! ( get_scan_event_precursor_mass, m) ?) ?;
17621783 m. add_function ( wrap_pyfunction ! ( get_scan_event_activation_type, m) ?) ?;
1784+ m. add_function ( wrap_pyfunction ! ( get_scan_event_isolation_width, m) ?) ?;
1785+ m. add_function ( wrap_pyfunction ! ( get_scan_event_isolation_width_offset, m) ?) ?;
17631786 m. add_function ( wrap_pyfunction ! ( get_scan_event_collision_energy, m) ?) ?;
17641787 m. add_function ( wrap_pyfunction ! ( get_scan_stats, m) ?) ?;
17651788 m. add_function ( wrap_pyfunction ! ( get_instrument_axis_label_x, m) ?) ?;
0 commit comments