Skip to content

Commit

Permalink
ref: make skipping export test more intuitive
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Apr 20, 2022
1 parent 235bcb9 commit a1ce247
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dclab/rtdc_dataset/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def fcs(self, path, features, meta_data=None, filtered=True,
)

def hdf5(self, path, features=None, filtered=True, override=False,
compression="gzip", perform_checks=True):
compression="gzip", skip_checks=False):
"""Export the data of the current instance to an HDF5 file
Parameters
Expand All @@ -181,8 +181,8 @@ def hdf5(self, path, features=None, filtered=True, override=False,
compression: str or None
Compression method for e.g. "contour", "image", and "trace" data
as well as logs; one of [None, "lzf", "gzip", "szip"].
perform_checks: bool
Check whether all features have the same length.
skip_checks: bool
Disable checking whether all features have the same length.
"""
path = pathlib.Path(path)
# Make sure that path ends with .rtdc
Expand Down Expand Up @@ -213,7 +213,7 @@ def hdf5(self, path, features=None, filtered=True, override=False,
else:
filtarr = None

if perform_checks:
if not skip_checks:
# check that all features have same length and use the smallest
# common length
lengths = []
Expand Down

0 comments on commit a1ce247

Please sign in to comment.