-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor testing and arbitrary extension handling #149
Conversation
@ypriverol LMK what you think |
@ypriverol as we talked about, I added the extended handling of extensions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you increase the version of the package in the same PR
__version__ = "0.0.23" |
@@ -37,6 +36,17 @@ def get_openms_file_name(raw, extension_convert: str = None): | |||
:param extension_convert: convert extension to specified format | |||
:return: converted file name | |||
""" | |||
|
|||
def _removesuffix(x: str, suffix: str, /) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful implementation @jspaezp
The main purpose of this PR is to increase the test cases in the repo and make it easier to maintain.
In addition,
EDIT:
.gz -> .d
or.d.zip -> .d
, while at the same time handling graciously cases where the passed conversions are not used (ie,raw:mzml
does not error out if there are both.raw
and.mzml
files)