-
Notifications
You must be signed in to change notification settings - Fork 80
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 Rust panic error in signature creation #1166
Comments
I said:
luiz said: Yikes, a self.signatures
.iter_mut()
.for_each(|sketch| {
sketch.add_protein(&seq).unwrap(); }
); I didn't know about self.signatures
.iter_mut()
.try_for_each(|sketch| {
sketch.add_protein(&seq) }
)?; This is going to raise a I made the changes in src/core/src/signature.rs, line 355 / method
|
test code to trigger the panic is in #1172 |
Check to see if there is a self.signatures
.iter_mut()
.try_for_each(|sketch| {
sketch.add_protein(&seq) }
)?; not self.signatures
.iter_mut()
.try_for_each(|sketch| {
sketch.add_protein(&seq); }
)?; (putting the semicolon makes the |
thanks! that worked ;) |
The following error was triggered by this command line, in #1159 -
error:
there is now a check in the CLI code to prevent this, and a test, but that can be bypassed by commenting out the
Incompatible sketch type
ValueError exceptions incommand_sketch.py
if we want to reproduce this.see @luizirber comment here
The text was updated successfully, but these errors were encountered: