Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Python from the previous update #304

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading