Global-Chem / global-chem

A Knowledge Graph of Common Chemical Names to their Molecular Definition
https://globalchemistry.org/
Mozilla Public License 2.0
154 stars 21 forks source link

SS-162: Cannabis Terpenes Node is Down #284

Closed Sulstice closed 11 months ago

Sulstice commented 11 months ago
Screenshot 2023-10-12 at 10 13 44 AM
Sulstice commented 11 months ago

@Nickspizza001

https://github.com/Global-Chem/global-chem/pull/280

Review the recent commits.

Sulstice commented 11 months ago

@Nickspizza001

To fix this issue, I tested the nodes within the directory to see which ones were working and which were not. Nodes like the phytocannabinoids was working suggesting that the file name might be culprit of why the node wasn't pulling.

There must be a link between the file name and the node name somewhere in the code that they are consistent:

For example cannabis_acids.py:


class CannabisAcids(object):

  def __init__(self):

    self.name = 'cannabis_acids'
Sulstice commented 11 months ago

This has been fixed and is now in the most recent version released. Will be staged for development branch 2.0.