Skip to content

Commit

Permalink
Faster eval of expression
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesloibl committed Dec 9, 2024
1 parent 5d2903d commit ee3d836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nptdms/tdms_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def _read_channel_data_chunk(self, file, data_objects, chunk_index, channel_path
return channel_data

def _get_channel_number_values(self, obj, chunk_index):
if chunk_index == (self.num_chunks - 1) and self.final_chunk_lengths_override is not None:
if self.final_chunk_lengths_override is not None and chunk_index == (self.num_chunks - 1):
return self.final_chunk_lengths_override.get(obj.path, 0)
else:
return obj.number_values
Expand Down

0 comments on commit ee3d836

Please sign in to comment.