Skip to content

Commit

Permalink
Replaced absolute polymerist imports with relative ones
Browse files Browse the repository at this point in the history
  • Loading branch information
timbernat committed May 9, 2024
1 parent 350241f commit a1c7b67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions polymerist/lammpstools/unitstyles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

from typing import ClassVar, Optional
from dataclasses import dataclass, field
from polymerist.genutils.decorators.classmod import register_subclasses

from ..genutils.decorators.classmod import register_subclasses

# sensible units
from openmm.unit import *
Expand All @@ -13,9 +12,9 @@
from openmm.unit import centimeter, micrometer, nanometer # length
from openmm.unit import microsecond, nanosecond, picosecond, femtosecond # time

from polymerist.unitutils.extraunits import picocoulomb
from polymerist.unitutils.extraunits import electronvolt, atomic_time # physicist units
from polymerist.unitutils.extraunits import statcoulomb, statvolt, poise # CGS units
from ..unitutils.extraunits import picocoulomb
from ..unitutils.extraunits import electronvolt, atomic_time # physicist units
from ..unitutils.extraunits import statcoulomb, statvolt, poise # CGS units


# Base container class for LAMMPS unit styles
Expand Down
2 changes: 1 addition & 1 deletion polymerist/openfftools/partialcharge/chargemethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from openff.nagl import GNNModel
from espaloma_charge.openff_wrapper import EspalomaChargeToolkitWrapper

from polymerist.openfftools import REGISTERED_TKWRAPPER_TYPES
from .. import REGISTERED_TKWRAPPER_TYPES


# REFERENCE MAPPING BETWEEN PARTIAL CHARGE METHODS AND SUPPORTING TOOLKIT WRAPPERS
Expand Down
2 changes: 1 addition & 1 deletion polymerist/polymers/smidgelib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from typing import ClassVar, Union, Optional
from dataclasses import dataclass, field
from polymerist.rdutils.smileslib.primitives import BONDTYPE_BY_BOND_SMARTS, BOND_SMARTS_BY_BONDTYPE, BOND_PRIMITIVES_FOR_REGEX
from ...rdutils.smileslib.primitives import BONDTYPE_BY_BOND_SMARTS, BOND_SMARTS_BY_BONDTYPE, BOND_PRIMITIVES_FOR_REGEX


# PROCESSING BOND TOKENS IN SMIDGE STRINGS
Expand Down
2 changes: 1 addition & 1 deletion polymerist/polymers/smidgelib/smidgebonds.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from typing import ClassVar, Union, Optional
from dataclasses import dataclass, field
from polymerist.rdutils.smileslib.primitives import RDKIT_BONDS_BY_BONDTYPE, BONDTYPE_BY_BOND_SMARTS, BOND_SMARTS_BY_BONDTYPE, BOND_PRIMITIVES_FOR_REGEX
from ...rdutils.smileslib.primitives import BONDTYPE_BY_BOND_SMARTS, BOND_SMARTS_BY_BONDTYPE, BOND_PRIMITIVES_FOR_REGEX


# PROCESSING BOND TOKENS IN SMIDGE STRINGS
Expand Down

0 comments on commit a1c7b67

Please sign in to comment.