Skip to content

Commit

Permalink
remove zlib from string and iterable writes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarshak committed Feb 2, 2024
1 parent 8762306 commit 1b2130c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isce2_topsapp/packaging_utils/nc_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def write_dataset(fid,data,properties_data):
else:

if isinstance(data,str):
dset = fid.createVariable(properties_data.name, str, ('matchup',), zlib=True)
dset = fid.createVariable(properties_data.name, str, ('matchup',))
dset[0]=data
elif isinstance(data,np.ndarray):
# make sure the _fillvalue is formatted the same as the data_type
Expand All @@ -156,7 +156,7 @@ def write_dataset(fid,data,properties_data):
dset[:] = data
elif isinstance(data, collections.abc.Iterable):
if isinstance(data[0],str):
dset = fid.createVariable(properties_data.name, str, ('matchup',), zlib=True)
dset = fid.createVariable(properties_data.name, str, ('matchup',))
count = 0
for data_line in data:
dset[count]=data_line
Expand Down

0 comments on commit 1b2130c

Please sign in to comment.