-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FIX] error in conformer model #72
Conversation
conformer model expected properties of transition group that were not present. Require a spectral library to get the library intensities
update pad/slicing interface for chromatograms that are smaller than window to be the window size
automatically set window size based on the supplied model
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.
Looks good! Just a few minor changes and comments
@@ -73,8 +76,9 @@ def load_model(self): | |||
raise ImportError("onnxruntime is required for loading the pretrained Conformer model, but not installed.") | |||
# Load pretrained model | |||
self.onnx_session = onnxruntime.InferenceSession(self.pretrained_model_file) | |||
self.window_size = self.onnx_session.get_inputs()[0].shape[2] |
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 wrap this in an exception handling to assert that get_inputs()
must have a value (non-empty list) and that the first input must be a 3 dimensional array.
rename pad to adjust_length because the length can either be padded or truncated
massdash/structs/Spectrum.py
Outdated
def adjust_length(self, length: int) -> 'Spectrum': | ||
""" | ||
Adjust the length of the mobilogram to a given length, this involved either padding or truncating the chromatogram |
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.
mobilogram/chromatogram -> spectrum
conformer model expected properties of transition group that were not present. Change UI such that require a spectral library to get the library intensities.
TODO: Fix breaking changes to the UI side
Contents (#72)
Other
Uncategorised!