Skip to content

Commit

Permalink
fix l2 dir setting
Browse files Browse the repository at this point in the history
  • Loading branch information
hgloeckner committed Aug 18, 2024
1 parent 8d950a2 commit 3b94fbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/halodrops/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,9 +880,9 @@ def add_compression_and_encoding_properties(

for var in self._interim_l2_ds.data_vars:
if not encoding_variables.get(var):
self._interim_l2_ds[var].encoding = (
default_variable_compression_properties
)
self._interim_l2_ds[
var
].encoding = default_variable_compression_properties

return self

Expand Down Expand Up @@ -962,7 +962,7 @@ def add_l2_ds(self, l2_dir: str = None):
Returns the sonde object with the L2 dataset added as an attribute.
"""
if l2_dir is None:
self.l2_dir
l2_dir = self.l2_dir

object.__setattr__(
self, "l2_ds", xr.open_dataset(os.path.join(l2_dir, self.l2_filename))
Expand Down

0 comments on commit 3b94fbf

Please sign in to comment.