-
Notifications
You must be signed in to change notification settings - Fork 66
fix: rescue smiles generation with openbabel #2915
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| c.set_out_format 'can' | ||
| ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip | ||
| ca_smiles = begin |
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.
Metrics/ModuleLength: Module has too many lines. [420/100]
|
|
||
| c.set_out_format 'can' | ||
| ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip | ||
| ca_smiles = begin |
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.
Metrics/AbcSize: Assignment Branch Condition size for molecule_info_from_structure is too high. [<22, 55, 15> 61.11/25]
|
|
||
| c.set_out_format 'can' | ||
| ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip | ||
| ca_smiles = begin |
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.
Metrics/CyclomaticComplexity: Cyclomatic complexity for molecule_info_from_structure is too high. [12/7]
|
|
||
| c.set_out_format 'can' | ||
| ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip | ||
| ca_smiles = begin |
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.
Metrics/MethodLength: Method has too many lines. [66/30]
|
|
||
| c.set_out_format 'can' | ||
| ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip | ||
| ca_smiles = begin |
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.
Metrics/PerceivedComplexity: Perceived complexity for molecule_info_from_structure is too high. [14/8]
lib/chemotion/open_babel_service.rb
Outdated
| str = c.write_string(m, false).to_s | ||
| str.lines.first.to_s.strip | ||
| rescue StandardError, SystemStackError | ||
| "" |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
rather 1-story 1-commit than sub-atomic commits
commit title is meaningful => git history search
commit description is helpful => helps the reviewer to understand the changes
code is up-to-date with the latest developments of the target branch (rebased to it or whatever) => ⏩-merge for linear history is favoured
added code is linted
tests are passing (at least locally): we still have some random test failure on CI. thinking of asking spec/examples.txt to be commited
in case the changes are visible to the end-user, video or screenshots should be added to the PR => helps with user testing
testing coverage improvement is improved.
CHANGELOG : add a bullet point on top (optional: reference to github issue/PR )
parallele PR for documentation on docusaurus if the feature/fix is tagged for a release