-
Notifications
You must be signed in to change notification settings - Fork 40
Refactor codebase to support a new simplified Parser->ManifestStore model. #601
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
base: develop
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
…s://github.com/TomNicholas/VirtualiZarr into refactor-kerchunk-readers-to-use-ManifestStore
for more information, see https://pre-commit.ci
Instantiate a parser with parser-specific parameters that can be used in the __call__ method. | ||
Parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instantiate a parser with parser-specific parameters that can be used in the __call__ method. | |
Parameters | |
Instantiate a parser with parser-specific parameters that can be used in the | |
`__call__` method. | |
Parameters |
Instantiate a parser with parser-specific parameters that can be used in the __call__ method. | |
Parameters | |
Instantiate a parser with parser-specific parameters that can be used in the __call__ method. | |
Parameters |
Instantiate a parser with parser-specific parameters that can be used in the __call__ method. | ||
Parameters: | ||
group (str): The group within the file to be used as the Zarr root group for the ManifestStore. | ||
fs_root (str): The qualifier to be used for kerchunk references containing relative paths. | ||
skip_variables (Iterable[str]): Variables in the file that will be ignored when creating the ManifestStore. | ||
store_registry (ObjectStoreRegistry): A user defined ObjectStoreRegistry to be used for reading data for kerchunk references contain paths to multiple locations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instantiate a parser with parser-specific parameters that can be used in the __call__ method. | |
Parameters: | |
group (str): The group within the file to be used as the Zarr root group for the ManifestStore. | |
fs_root (str): The qualifier to be used for kerchunk references containing relative paths. | |
skip_variables (Iterable[str]): Variables in the file that will be ignored when creating the ManifestStore. | |
store_registry (ObjectStoreRegistry): A user defined ObjectStoreRegistry to be used for reading data for kerchunk references contain paths to multiple locations. | |
Instantiate a parser with parser-specific parameters that can be used in the | |
`__call__` method. | |
Parameters | |
---------- | |
group | |
The group within the file to be used as the Zarr root group for the ManifestStore. | |
fs_root | |
The qualifier to be used for kerchunk references containing relative paths. | |
skip_variables | |
Variables in the file that will be ignored when creating the ManifestStore. | |
store_registry | |
A user defined ObjectStoreRegistry to be used for reading data for kerchunk | |
references contain paths to multiple locations. |
file_url | ||
The URI or path to the input file (e.g., "s3://bucket/kerchunk.json"). | ||
object_store | ||
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter. | |
An obstore ObjectStore instance for accessing the file specified in the | |
`file_url` parameter. |
reader_options: dict | None = None, | ||
): | ||
""" | ||
Instantiate a parser with parser-specific parameters that can be used in the __call__ method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instantiate a parser with parser-specific parameters that can be used in the __call__ method. | |
Instantiate a parser with parser-specific parameters that can be used in the | |
`__call__` method. |
file_url | ||
The URI or path to the input parquet directory (e.g., "s3://bucket/file.parq"). | ||
object_store | ||
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter. | |
An obstore ObjectStore instance for accessing the file specified in the | |
`file_url` parameter. |
reader_options | ||
dict containing kwargs to pass to file opener, by default {} | ||
fs | ||
The fsspec filesystem object, created in __post_init__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fsspec filesystem object, created in __post_init__ | |
The fsspec filesystem object, created in the `__post_init__` method. |
reader_options: dict | None = None, | ||
): | ||
""" | ||
Instantiate a parser with parser-specific parameters that can be used in the `__call__` method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instantiate a parser with parser-specific parameters that can be used in the `__call__` method. | |
Instantiate a parser with parser-specific parameters that can be used in the | |
`__call__` method. |
file_url | ||
The URI or path to the input file (e.g., "s3://bucket/file.nc"). | ||
object_store | ||
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter. | |
An obstore ObjectStore instance for accessing the file specified in the | |
`file_url` parameter. |
remote_options: dict | None = None, | ||
): | ||
""" | ||
Instantiate a parser with parser-specific parameters that can be used in the `__call__` method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instantiate a parser with parser-specific parameters that can be used in the `__call__` method. | |
Instantiate a parser with parser-specific parameters that can be used in the | |
`__call__` method. |
file_url | ||
The URI or path to the input file (e.g., "s3://bucket/file.tiff"). | ||
object_store | ||
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter. | |
An obstore ObjectStore instance for accessing the file specified in the | |
`file_url` parameter. |
file_url | ||
The URI or path to the input Zarr store (e.g., "s3://bucket/store.zarr"). | ||
object_store | ||
An obstore ObjectStore instance for accessing the directory specified in the `file_url` parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An obstore ObjectStore instance for accessing the directory specified in the `file_url` parameter. | |
An obstore ObjectStore instance for accessing the directory specified in the | |
`file_url` parameter. |
Fragility of url auto-parsing logic #561
Function definition for
open_virtual_dataset
in next major release #553Redefine Virtual Readers as
func(filepath) -> ManifestStore
#498Should we try to use Obstore for reading files? #476
Support passing configuration options to default_object_store #559
docs/releases.rst
api.rst