File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1058,8 +1058,8 @@ def __read_nsx_data_variant_a(self, nsx_nb):
10581058 filename = "." .join ([self ._filenames ["nsx" ], f"ns{ nsx_nb } " ])
10591059
10601060 # get shape of data
1061- shape = (self .__nsx_params ["2.1" ](nsx_nb )["nb_data_points" ], self .__nsx_basic_header [nsx_nb ]["channel_count" ])
1062- offset = self .__nsx_params ["2.1" ](nsx_nb )["bytes_in_headers" ]
1061+ shape = (int ( self .__nsx_params ["2.1" ](nsx_nb )["nb_data_points" ]), int ( self .__nsx_basic_header [nsx_nb ]["channel_count" ]) )
1062+ offset = int ( self .__nsx_params ["2.1" ](nsx_nb )["bytes_in_headers" ])
10631063
10641064 # read nsx data
10651065 # store as dict for compatibility with higher file specs
@@ -1831,7 +1831,7 @@ def __get_file_size(self, filename):
18311831 file_size = filebuf .tell ()
18321832 filebuf .close ()
18331833
1834- return file_size
1834+ return int ( file_size )
18351835
18361836 def __get_min_time (self ):
18371837 """
@@ -2007,8 +2007,8 @@ def __get_nsx_param_variant_a(self, nsx_nb):
20072007
20082008 nsx_parameters = {
20092009 "nb_data_points" : int (
2010- (self .__get_file_size (filename ) - bytes_in_headers )
2011- / (2 * self .__nsx_basic_header [nsx_nb ]["channel_count" ])
2010+ (int ( self .__get_file_size (filename )) - int ( bytes_in_headers ) )
2011+ / int (2 * self .__nsx_basic_header [nsx_nb ]["channel_count" ])
20122012 - 1
20132013 ),
20142014 "labels" : labels ,
You can’t perform that action at this time.
0 commit comments