Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 1, 2024
1 parent 68141a4 commit 66d96a4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gmso/utils/conversions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Module for standard conversions needed in molecular simulations."""

from __future__ import annotations
from typing import TYPE_CHECKING

import re
from functools import lru_cache
from typing import TYPE_CHECKING

import numpy as np
import symengine
Expand All @@ -11,7 +13,7 @@
from unyt.dimensions import length, mass, time

if TYPE_CHECKING:
import gmso
import gmso

from gmso.exceptions import EngineIncompatibilityError, GMSOError
from gmso.lib.potential_templates import (
Expand Down Expand Up @@ -60,7 +62,7 @@ def _try_sympy_conversions(pot1, pot2):

def _conversion_from_template_name(
top, connStr: str, conn_typeStr: str, convStr: str
) -> 'gmso.Topology':
) -> "gmso.Topology":
"""Use the name of convStr to identify function to convert sympy expressions."""
conversions_map = { # these are predefined between template types
# More functions, and `(to, from)` key pairs added to this dictionary
Expand Down Expand Up @@ -104,7 +106,7 @@ def _conversion_from_template_name(


def _conversion_from_template_obj(
top: 'gmso.Topology',
top: "gmso.Topology",
connStr: str,
conn_typeStr: str,
potential_template: gmso.core.ParametricPotential,
Expand Down

0 comments on commit 66d96a4

Please sign in to comment.