Skip to content

Commit

Permalink
Merge branch 'main' into loading-featurizer
Browse files Browse the repository at this point in the history
  • Loading branch information
FMcil authored Aug 29, 2024
2 parents 1884e7a + 44c44f7 commit a787b97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Featurizing a MOF

.. code-block:: python
from mofdscribe.chemistry.racs import RACS
from mofdscribe.featurizers.chemistry.racs import RACS
from pymatgen.core import Structure
s = Structure.from_file(<my_cif>)
Expand All @@ -30,8 +30,8 @@ It is also easy to combine multiple featurizers into a single pipeline:

.. code-block:: python
from mofdscribe.chemistry.racs import RACS
from mofdscribe.pore.geometric_properties import PoreDiameters
from mofdscribe.featurizers.chemistry.racs import RACS
from mofdscribe.featurizers.pore.geometric_properties import PoreDiameters
from pymatgen.core import Structure
from mofdscribe.featurizers.base import MOFMultipleFeaturizer
Expand All @@ -54,7 +54,7 @@ And, clearly, you can also use the `mofdscribe` featurizers alongside ones from
.. code-block:: python
from matminer.featurizers.structure import LocalStructuralOrderParams
from mofdscribe.chemistry.racs import RACS
from mofdscribe.featurizers.chemistry.racs import RACS
featurizer = MOFMultipleFeaturizer([RACS(), LocalStructuralOrderParams()])
features = featurizer.featurize_many([s, s2])
Expand Down
2 changes: 2 additions & 0 deletions src/mofdscribe/featurizers/text/mofdscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def _get_bb_description(self, structure: Structure, structure_graph: StructureGr
rcsr_code = fragments.net_embedding.rcsr_code
if rcsr_code and len(rcsr_code) > 1:
rcsr_string = "RCSR code: {}. ".format(rcsr_code)
else:
rcsr_string = ""

output_string = ""
if self.incorporate_smiles:
Expand Down

0 comments on commit a787b97

Please sign in to comment.