Skip to content

Commit

Permalink
Merge pull request #304 from pariterre/dev
Browse files Browse the repository at this point in the history
Fixed Python from the previous update
  • Loading branch information
pariterre authored Dec 11, 2023
2 parents 885d265 + 8a0ba5a commit e8eb29c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.8)
project(ezc3d VERSION 1.5.6)
project(ezc3d VERSION 1.5.7)

option(BUILD_SHARED_LIBS "Choose if build should be a dynamic or static library" ON)
# Option to allow checking of size for matrix getter (slower but safer if activated)
Expand Down
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 e8eb29c

Please sign in to comment.