Skip to content

Commit

Permalink
Multiprocessing Updates (#127)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
clee-ai and pre-commit-ci[bot] authored Sep 15, 2022
1 parent 8da52ca commit d95f3cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/copclib/mp/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ def read_concat_xyz_class_limit(
Returns:
np.array: An (nx3) array of XYZ coordinates.
"""
assert (
isinstance(classification_limits, list) or classification_limits is None
), f"Argument 'classification_limits' is of invalid type! {classification_limits}"
# We provide these arguments within this function, so the user isn't able to provide them.
invalid_args = ["filter_function", "filter_function_args", "completed_callback"]
for invalid_arg in invalid_args:
Expand Down Expand Up @@ -211,6 +214,9 @@ def read_map_xyz_class_limit(
Returns:
dict[str: np.array]: A mapping of stringified COPC keys to an (nx3) array of XYZ coordinates.
"""
assert (
isinstance(classification_limits, list) or classification_limits is None
), f"Argument 'classification_limits' is of invalid type! {classification_limits}"
# We provide these arguments within this function, so the user isn't able to provide them.
invalid_args = ["filter_function", "filter_function_args", "completed_callback"]
for invalid_arg in invalid_args:
Expand Down

0 comments on commit d95f3cb

Please sign in to comment.