timelined_array 0.0.6__tar.gz → 0.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: timelined_array
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: Manage easily 1 or multidimensionnal samples numpy arrays that are time related. Extends numpy without removing any of it's abilities on such arrays.
5
5
  Author-Email: Timothe Jost <timothe.jost@wanadoo.fr>
6
6
  License: MIT
@@ -10,7 +10,7 @@ dependencies = [
10
10
  requires-python = ">=3.11"
11
11
  readme = "README.md"
12
12
  dynamic = []
13
- version = "0.0.6"
13
+ version = "0.0.7"
14
14
 
15
15
  [project.license]
16
16
  text = "MIT"
@@ -1,3 +1,3 @@
1
- __version__ = "0.0.6"
1
+ __version__ = "0.0.7"
2
2
 
3
3
  from .time import TimelinedArray, MaskedTimelinedArray, Seconds, Boundary
@@ -1007,7 +1007,10 @@ class TimeMixin:
1007
1007
  # +1 (a.k.a. shifted one dimension deeper)
1008
1008
 
1009
1009
  for element in data:
1010
- time_dimension = getattr(element, "time_dimension", None) + 1
1010
+ time_dimension = getattr(element, "time_dimension", None)
1011
+ if time_dimension is None:
1012
+ break
1013
+ time_dimension = time_dimension + 1
1011
1014
  _unpacking = True
1012
1015
  break
1013
1016
  else:
File without changes