Skip to content

Commit 3b94fbf

Browse files
committed
fix l2 dir setting
1 parent 8d950a2 commit 3b94fbf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/halodrops/processor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -880,9 +880,9 @@ def add_compression_and_encoding_properties(
880880

881881
for var in self._interim_l2_ds.data_vars:
882882
if not encoding_variables.get(var):
883-
self._interim_l2_ds[var].encoding = (
884-
default_variable_compression_properties
885-
)
883+
self._interim_l2_ds[
884+
var
885+
].encoding = default_variable_compression_properties
886886

887887
return self
888888

@@ -962,7 +962,7 @@ def add_l2_ds(self, l2_dir: str = None):
962962
Returns the sonde object with the L2 dataset added as an attribute.
963963
"""
964964
if l2_dir is None:
965-
self.l2_dir
965+
l2_dir = self.l2_dir
966966

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

0 commit comments

Comments
 (0)