Skip to content

fix: rescue smiles generation with openbabel#2915

Open
haditariq wants to merge 5 commits intomainfrom
fix-openbabel-can-fallback
Open

fix: rescue smiles generation with openbabel#2915
haditariq wants to merge 5 commits intomainfrom
fix-openbabel-can-fallback

Conversation

@haditariq
Copy link
Contributor

  • 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


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

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

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

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

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

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]

@haditariq haditariq marked this pull request as draft January 29, 2026 08:53
@PiTrem PiTrem changed the title fix: rescue can generation with openbabel fix: rescue smiles generation with openbabel Jan 29, 2026
@haditariq haditariq force-pushed the fix-openbabel-can-fallback branch from a9792c8 to 894d0cc Compare February 20, 2026 09:23

c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

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. [419/100]


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

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. [<21, 53, 15> 58.95/25]


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

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. [65/30]

c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin
c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip

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.

@github-actions
Copy link

LCOV of commit a9792c8 during CI - Ruby Lint, RSpec, and code coverage #884

Summary coverage rate:
  lines......: 66.6% (17979 of 26986 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@haditariq haditariq self-assigned this Feb 20, 2026
@github-actions
Copy link

LCOV of commit 894d0cc during CI - Ruby Lint, RSpec, and code coverage #885

Summary coverage rate:
  lines......: 66.6% (17980 of 26985 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

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, 56, 15> 62.01/25]

ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin
str = c.write_string(m, false).to_s
str.lines.first.to_s.gsub(/\s.*/m, "").strip

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.

@github-actions
Copy link

LCOV of commit 32b5c20 during CI - Ruby Lint, RSpec, and code coverage #889

Summary coverage rate:
  lines......: 66.6% (17980 of 26987 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@haditariq haditariq marked this pull request as ready for review February 20, 2026 12:04
@haditariq haditariq requested a review from PiTrem February 20, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant