Skip to content
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

1267 reactants from reagent list do not appear above reaction arrow #1308

Conversation

PiTrem
Copy link
Member

@PiTrem PiTrem commented May 8, 2023

  • fall back to another css selector in case the molecule SVG was created by ketchersrv

  • added rake task to regenerate sample/molecule SVGs

@PiTrem PiTrem linked an issue May 8, 2023 that may be closed by this pull request
@PiTrem PiTrem mentioned this pull request May 8, 2023
@@ -425,10 +425,11 @@ def inner_file_content(svg_path)
return unless File.file?(file)

doc = Nokogiri::XML(File.open(file))

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/ClassLength: Class has too many lines. [546/200]

@github-actions
Copy link

github-actions bot commented May 8, 2023

LCOV of commit 99f21bf during Continuous Integration #949

Summary coverage rate:
  lines......: 60.1% (11793 of 19611 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

PiTrem added 2 commits May 8, 2023 17:02
need the ketcher rendering service.

examples:

- reprocess missing molecule SVGs: `rake svg:molecule`

- reprocess all molecule SVGs with molecule id >= 200: `rake 'svg:molecule[all, 200]'`

- reprocess missing sample SVGs with sample 100 <= id <= 200: `rake 'svg:sample[missing, 100, 200]'`

- reprocess  openbabel generated molecule SVGs: `rake 'svg:molecule[openbabel]'`
@PiTrem PiTrem force-pushed the 1267-reactants-from-reagent-list-do-not-appear-above-reaction-arrow branch from 99f21bf to 868477d Compare May 8, 2023 15:17
@@ -428,7 +428,7 @@ def inner_file_content(svg_path)
if svg_path.include?('/samples')
doc.at_css('svg')
else
doc.at_css('g svg')
doc.at_css('g svg').presence || doc.at_css('svg')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/ClassLength: Class has too many lines. [546/200]

@github-actions
Copy link

github-actions bot commented May 8, 2023

LCOV of commit 868477d during Continuous Integration #953

Summary coverage rate:
  lines......: 60.1% (11794 of 19610 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@PiTrem PiTrem merged commit f741545 into main May 9, 2023
2 of 3 checks passed
PiTrem added a commit that referenced this pull request May 9, 2023
…1308)

* fall back to another css selector for molecule molfile (ketcher srv generated)

* rake tasks to reprocess molecule/sample svg:

needs the ketcher rendering service. Timestamps  are not updated.

examples:

- reprocess missing molecule SVGs: `rake svg:molecule`

- reprocess all molecule SVGs with molecule id >= 200: `rake 'svg:molecule[all, 200]'`

- reprocess missing sample SVGs with sample 100 <= id <= 200: `rake 'svg:sample[missing, 100, 200]'`

- reprocess  openbabel generated molecule SVGs: `rake 'svg:molecule[openbabel]'`
dpatelev pushed a commit that referenced this pull request May 10, 2023
…1308)

* fall back to another css selector for molecule molfile (ketcher srv generated)

* rake tasks to reprocess molecule/sample svg:

needs the ketcher rendering service. Timestamps  are not updated.

examples:

- reprocess missing molecule SVGs: `rake svg:molecule`

- reprocess all molecule SVGs with molecule id >= 200: `rake 'svg:molecule[all, 200]'`

- reprocess missing sample SVGs with sample 100 <= id <= 200: `rake 'svg:sample[missing, 100, 200]'`

- reprocess  openbabel generated molecule SVGs: `rake 'svg:molecule[openbabel]'`
mekkyz pushed a commit that referenced this pull request Sep 21, 2023
…1308)

* fall back to another css selector for molecule molfile (ketcher srv generated)

* rake tasks to reprocess molecule/sample svg:

needs the ketcher rendering service. Timestamps  are not updated.

examples:

- reprocess missing molecule SVGs: `rake svg:molecule`

- reprocess all molecule SVGs with molecule id >= 200: `rake 'svg:molecule[all, 200]'`

- reprocess missing sample SVGs with sample 100 <= id <= 200: `rake 'svg:sample[missing, 100, 200]'`

- reprocess  openbabel generated molecule SVGs: `rake 'svg:molecule[openbabel]'`
baolanlequang pushed a commit that referenced this pull request Mar 5, 2024
…1308)

* fall back to another css selector for molecule molfile (ketcher srv generated)

* rake tasks to reprocess molecule/sample svg:

needs the ketcher rendering service. Timestamps  are not updated.

examples:

- reprocess missing molecule SVGs: `rake svg:molecule`

- reprocess all molecule SVGs with molecule id >= 200: `rake 'svg:molecule[all, 200]'`

- reprocess missing sample SVGs with sample 100 <= id <= 200: `rake 'svg:sample[missing, 100, 200]'`

- reprocess  openbabel generated molecule SVGs: `rake 'svg:molecule[openbabel]'`
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.

Reactants from reagent list do not appear above reaction arrow
2 participants