|
18 | 18 | import strax |
19 | 19 | from strax import CutList |
20 | 20 |
|
21 | | - |
22 | 21 | export, __all__ = strax.exporter() |
23 | 22 | __all__.extend(["RUN_DEFAULTS_KEY"]) |
24 | 23 |
|
@@ -1443,8 +1442,8 @@ def _add_saver( |
1443 | 1442 | target_plugin: strax.Plugin, |
1444 | 1443 | combining: bool = False, |
1445 | 1444 | ): |
1446 | | - """Adds savers to already existing savers. Checks if data_type can be stored in any storage |
1447 | | - frontend. |
| 1445 | + """Adds savers to already existing savers. frontend. Checks if data_type can be stored in |
| 1446 | + any storage. |
1448 | 1447 |
|
1449 | 1448 | :param savers: Dictionary of already existing savers. |
1450 | 1449 | :param d_to_save: String of the data_type to be saved. |
@@ -1559,7 +1558,6 @@ def to_absolute_time_range( |
1559 | 1558 | :param full_range: If True returns full time_range of the run. |
1560 | 1559 |
|
1561 | 1560 | """ |
1562 | | - |
1563 | 1561 | selection = ( |
1564 | 1562 | (time_range is None) |
1565 | 1563 | + (seconds_range is None) |
@@ -1820,9 +1818,9 @@ def make( |
1820 | 1818 | combining=False, |
1821 | 1819 | **kwargs, |
1822 | 1820 | ) -> None: |
1823 | | - """Compute target for run_id. Returns nothing (None). |
| 1821 | + """Compute target for run_id. |
1824 | 1822 |
|
1825 | | - {get_docs} |
| 1823 | + Returns nothing (None). {get_docs} |
1826 | 1824 |
|
1827 | 1825 | """ |
1828 | 1826 | kwargs.setdefault("progress_bar", False) |
@@ -2018,8 +2016,8 @@ def get_zarr( |
2018 | 2016 | overwrite=True, |
2019 | 2017 | **kwargs, |
2020 | 2018 | ): |
2021 | | - """Get persistent arrays using zarr. This is useful when loading large amounts of data that |
2022 | | - cannot fit in memory zarr is very compatible with dask. Targets are loaded into separate |
| 2019 | + """Get persistent arrays using zarr. cannot fit in memory zarr is very compatible with dask. |
| 2020 | + Targets are loaded into separate This is useful when loading large amounts of data that |
2023 | 2021 | arrays and runs are merged. the data is added to any existing data in the storage location. |
2024 | 2022 |
|
2025 | 2023 | :param run_ids: (Iterable) run ids you wish to load. |
@@ -2070,9 +2068,9 @@ def get_zarr( |
2070 | 2068 | return group |
2071 | 2069 |
|
2072 | 2070 | def key_for(self, run_id, target, chunk_number=None, combining=False): |
2073 | | - """Get the DataKey for a given run and a given target plugin. The DataKey is inferred from |
2074 | | - the plugin lineage. The lineage can come either from the _fixed_plugin_cache or computed on |
2075 | | - the fly. |
| 2071 | + """Get the DataKey for a given run and a given target plugin. the plugin lineage. The |
| 2072 | + lineage can come either from the _fixed_plugin_cache or computed on The DataKey is inferred |
| 2073 | + from the fly. |
2076 | 2074 |
|
2077 | 2075 | :param run_id: run id to get |
2078 | 2076 | :param target: data type to get |
@@ -2487,7 +2485,6 @@ def merge_per_chunk_storage( |
2487 | 2485 | check_is_stored: bool = True, |
2488 | 2486 | ): |
2489 | 2487 | """Merge the per-chunked data from the per-chunked dependency into the target storage.""" |
2490 | | - |
2491 | 2488 | if check_is_stored and self.is_stored(run_id, target): |
2492 | 2489 | raise ValueError(f"Data {target} for {run_id} already exists.") |
2493 | 2490 |
|
@@ -2871,7 +2868,6 @@ def tree_levels(self): |
2871 | 2868 | 'class': 'Peaks', 'index': 0, 'order': 1}} |
2872 | 2869 |
|
2873 | 2870 | """ |
2874 | | - |
2875 | 2871 | context_hash = self._context_hash() |
2876 | 2872 | if self._fixed_level_cache is not None and context_hash in self._fixed_level_cache: |
2877 | 2873 | return self._fixed_level_cache[context_hash] |
|
0 commit comments