timelined_array 1.0.9__tar.gz → 1.1.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.3
2
2
  Name: timelined_array
3
- Version: 1.0.9
3
+ Version: 1.1.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: Timothe Jost
6
6
  Author-email: Timothe Jost <44769559+JostTim@users.noreply.github.com>
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "timelined_array"
3
3
  description = "Manage easily 1 or multidimensionnal samples numpy arrays that are time related. Extends numpy without removing any of it's abilities on such arrays."
4
- version = "1.0.9"
4
+ version = "1.1.7"
5
5
  dependencies = ["numpy>=2"]
6
6
  requires-python = ">=3.12"
7
7
  readme = "README.md"
@@ -54,7 +54,7 @@ omit = [
54
54
  ]
55
55
 
56
56
  [tool.bumpversion]
57
- current_version = "1.0.9"
57
+ current_version = "1.1.7"
58
58
  parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)'
59
59
  serialize = ["{major}.{minor}.{patch}"]
60
60
  search = "{current_version}"
@@ -4,7 +4,7 @@ description = "Manage easily 1 or multidimensionnal samples numpy arrays that ar
4
4
  authors = [
5
5
  { name = "Timothe Jost", email = "44769559+JostTim@users.noreply.github.com" },
6
6
  ]
7
- version = "1.0.9"
7
+ version = "1.1.7"
8
8
  dependencies = ["numpy>=2"]
9
9
  requires-python = ">=3.12"
10
10
  readme = "README.md"
@@ -45,7 +45,7 @@ testpaths = ["tests"]
45
45
  omit = [".vscode/*", ".tests/*"]
46
46
 
47
47
  [tool.bumpversion]
48
- current_version = "1.0.9"
48
+ current_version = "1.1.7"
49
49
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
50
50
  serialize = ["{major}.{minor}.{patch}"]
51
51
  search = "{current_version}"
@@ -1,4 +1,4 @@
1
- __version__ = "1.0.9"
1
+ __version__ = "1.1.7"
2
2
  __all__ = ["BaseTimeArray", "MaskedTimelinedArray", "Timeline", "TimelinedArray"]
3
3
 
4
4
 
@@ -374,7 +374,10 @@ class TimeIndexer[A: "BaseTimeArray"]:
374
374
  # use : (wich is equivalent to None in the slice.stop object)
375
375
  stop = len(self.array.timeline)
376
376
 
377
- self.check_step_size_below_maximum(stop, time_stop)
377
+ # we make stop - 1 here because : array[3:5] for an array of size 5 is allowed,
378
+ # but array[5] for an array of size 5 is not, and hence, yould raise an error.
379
+ # (on top of the value being wrong by one element for any non terminal value)
380
+ self.check_step_size_below_maximum(stop - 1, time_stop)
378
381
  return stop
379
382
 
380
383
  def get_step_index(self, time_step: float | None) -> int: