Skip to content

Conversation

srivarra
Copy link
Contributor

@srivarra srivarra commented May 16, 2023

If you haven't already, please read through our contributing guidelines before opening your PR

What is the purpose of this PR?

Closes #969. Adds the ability to not move segmentation files.

How did you implement your changes

Added a flag to check and see if either seg_dir or seg_suffix_name are None.
Refactored the test to use a fixture, should make it easier to modify now.

Remaining issues

N/A.

@srivarra srivarra linked an issue May 16, 2023 that may be closed by this pull request
@srivarra srivarra self-assigned this May 16, 2023
@srivarra srivarra added the bug Something isn't working label May 16, 2023
@srivarra srivarra marked this pull request as ready for review May 16, 2023 16:58
@srivarra srivarra requested review from cliu72 and alex-l-kong May 16, 2023 16:58
@@ -2,7 +2,7 @@
import pathlib
import shutil
from operator import contains
from typing import List, Union
from typing import List, Optional, Union
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More type checking options, I like 👍

Copy link
Contributor

@cliu72 cliu72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just added a kind of related issue (#996) about segmentation_dir=None, but we can merge this one first

@srivarra srivarra added this pull request to the merge queue May 16, 2023
Merged via the queue into main with commit cb80847 May 16, 2023
@srivarra srivarra deleted the mantis/None branch May 16, 2023 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create_mantis_dir breaks if there is no segmentation directory
3 participants