Skip to content

Commit

Permalink
Fix masking and test
Browse files Browse the repository at this point in the history
  • Loading branch information
domfournier committed Sep 17, 2024
1 parent c9e235f commit 029a4bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions peak_finder/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ def run(self): # pylint: disable=R0912, R0914, too-many-statements
if False in masking_array:
survey.remove_vertices(~masking_array)

new_line_id = survey.get_entity(self.params.line_field.uid)[0]

if isinstance(new_line_id, ReferencedData):
self.params.line_field = new_line_id

line_field_obj = self.params.get_line_field(survey)

if (
Expand Down
2 changes: 1 addition & 1 deletion tests/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_get_ordered_survey_lines(tmp_path: Path):
# Create line field with non-adjacent labels
h5file_path = tmp_path / r"testOrderingSurveyLines.geoh5"
# Create temp workspace
temp_ws = Workspace(h5file_path)
temp_ws = Workspace.create(h5file_path)

x = np.c_[
np.zeros(30), np.tile(np.arange(0, 10), 3), np.repeat(np.arange(0, 30, 10), 10)
Expand Down

0 comments on commit 029a4bf

Please sign in to comment.