Skip to content

Commit

Permalink
Fixed finding no points in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Dec 11, 2023
1 parent 97c4c92 commit 8a0ba5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding/python3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def write(self, path: str, *, first_frame_as_zero: bool = False):
if nb_analog_components != 1:
raise TypeError("Analogs should be a numpy with first dimension exactly equals to 1 element")
nb_analog_subframes = 0
if nb_point_frames != 0:
if nb_point_frames != 0 and nb_points != 0:
if self._storage["parameters"]["ANALOG"]["RATE"]["value"][0] == 0:
if nb_analog_frames % nb_point_frames != 0:
raise ValueError("Number of frames of Points and Analogs should be a multiple of an integer")
Expand Down

0 comments on commit 8a0ba5a

Please sign in to comment.