Skip to content
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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v2.3.3

* Fix `check_values()` for `num_points` less than or greater than 3.

# v2.3.2

* Remove w3lib dependency

# v2.3.0

* Forbid extra attributes to all models
Expand Down
2 changes: 1 addition & 1 deletion src/czml3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .core import CZML_VERSION, Document, Packet

__version__ = "2.3.2"
__version__ = "2.3.3"

__all__ = ["Document", "Packet", "CZML_VERSION"]
2 changes: 1 addition & 1 deletion src/czml3/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def check_values(num_points: int, values: list[Any]):
f"Input values must have either {num_points} or N * {num_points + 1} values, where N is the number of time-tagged samples."
)
if len(values) % (num_points + 1) == 0 and np.any(
np.diff(values[:: (num_points + 1)]) <= 0
np.diff(values[:: num_points + 1]) <= 0
):
raise TypeError("Time values must be increasing.")

Expand Down