Skip to content

Commit ba81a8f

Browse files
authored
Merge pull request #23 from CNES/feature/metadata_improvements
Feature/metadata improvements
2 parents 9cec5f6 + 5114f31 commit ba81a8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+4058
-1510
lines changed

examples/ex_indexing.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def split_half_orbit(
6666
"""Calculate the indexes of the start and stop of each half-orbit.
6767
6868
Args:
69+
cycle_number: Cycle numbers.
6970
pass_number: Pass numbers.
7071
Returns:
7172
Iterator of start and stop indexes.
@@ -95,7 +96,7 @@ def _half_orbit(
9596
"""Return the indexes of the start and stop of each half-orbit.
9697
9798
Args:
98-
ds: Datasets stored in a partition to be indexed.
99+
zds: Datasets stored in a partition to be indexed.
99100
Returns:
100101
Dictionary of start and stop indexes for each half-orbit.
101102
"""
@@ -149,7 +150,7 @@ def create(
149150
150151
Args:
151152
path: The path to the index.
152-
ds: The collection to be indexed.
153+
zds: The collection to be indexed.
153154
filesystem: The filesystem to use.
154155
Returns:
155156
The created index.
@@ -169,7 +170,7 @@ def update(
169170
"""Update the index.
170171
171172
Args:
172-
ds: New data stored in the collection to be indexed.
173+
zds: New data stored in the collection to be indexed.
173174
partition_size: The length of each bag partition.
174175
npartitions: The number of desired bag partitions.
175176
cycle_number: The name of the cycle number variable stored in the

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ install_requires =
3737
package_dir =
3838
= .
3939
packages = find:
40-
python_requires = >=3.8
40+
python_requires = >=3.10
4141
zip_safe = False
4242

4343
[options.extras_require]

zcollection/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
create_view,
2020
open_collection,
2121
open_view,
22+
update_deprecated_collection,
2223
)
2324
from .dataset import Dataset, Expression
2425
from .meta import Attribute
25-
from .variable import Array, DelayedArray, Variable
26+
from .variable import Array, DelayedArray, Variable, new_variable
2627
from .version import __version__
2728
from .view import View, ViewReference, ViewUpdateCallable
2829

@@ -41,12 +42,14 @@
4142
'merging',
4243
'open_collection',
4344
'open_view',
45+
'update_deprecated_collection',
4446
'PartitionCallable',
4547
'PartitionFilter',
4648
'PartitionFilterCallback',
4749
'partitioning',
4850
'UpdateCallable',
4951
'Variable',
52+
'new_variable',
5053
'version',
5154
'View',
5255
'ViewReference',

0 commit comments

Comments
 (0)