remove XarrayZarrRecipe manual stage methods
@@ -897,61 +897,3 @@ class XarrayZarrRecipe(BaseRecipe, StorageMixin, FilePatternMixin):
for args in zip(self.subset_inputs.keys(), i, self.subset_inputs.values())
]
yield Index((chunk_key_base + subset_dims))
-
- # Below lie convience methods that help users develop and debug the recipe
- # They will all be deprecated
-
- def inputs_for_chunk(self, chunk_key: ChunkKey) -> Sequence[InputKey]:
- """Show which inputs are needed for which chunk.
-
- :param chunk_key: Which chunk to examine
- """
- warnings.warn(_deprecation_message, DeprecationWarning)
- ninputs = self.file_pattern.dims[self.file_pattern.concat_dims[0]]
- return inputs_for_chunk(chunk_key, self.inputs_per_chunk, ninputs)
-
- @contextmanager
- def open_input(self, input_key: InputKey) -> xr.Dataset:
- """Open an input
-
- :param chunk_key: Which input to open
- """
- warnings.warn(_deprecation_message, DeprecationWarning)
- with open_input(input_key, config=self) as ds:
- yield ds
-
- def cache_input(self, input_key: InputKey) -> None:
- """Cache an input
-
- :param chunk_key: Which input to cache
- """
- warnings.warn(_deprecation_message, DeprecationWarning)
- cache_input(input_key, config=self)
-
- def prepare_target(self) -> None:
- """Prepare target for writing."""
- warnings.warn(_deprecation_message, DeprecationWarning)
- prepare_target(config=self)
-
- @contextmanager
- def open_chunk(self, chunk_key: ChunkKey) -> xr.Dataset:
- """Open the inputs that go into a chunk as a single dataset
-
- :param chunk_key: Which chunk to open
- """
- warnings.warn(_deprecation_message, DeprecationWarning)
- with open_chunk(chunk_key, config=self) as ds:
- yield ds
-
- def store_chunk(self, chunk_key: ChunkKey) -> None:
- """Store a chunk into the target
-
- :param chunk_key: Which chunk to store
- """
- warnings.warn(_deprecation_message, DeprecationWarning)
- store_chunk(chunk_key, config=self)
-
- def finalize_target(self) -> None:
- """Prepare target for writing."""
- warnings.warn(_deprecation_message, DeprecationWarning)
- finalize_target(config=self)
