Skip to content

Commit

Permalink
rerun black and isort post pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemhenry committed Feb 16, 2024
1 parent 1ab70ca commit d3e06e5
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion openfe/protocols/openmm_afe/equil_solvation_afe_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import uuid
import warnings
from collections import defaultdict
from typing import Any, Optional, Union
from collections.abc import Iterable
from typing import Any, Optional, Union

import gufe
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion openfe/protocols/openmm_md/plain_md_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import time
import uuid
from collections import defaultdict
from typing import Any, Optional
from collections.abc import Iterable
from typing import Any, Optional

import gufe
import mdtraj
Expand Down
6 changes: 3 additions & 3 deletions openfe/protocols/openmm_rfe/_rfe_utils/topologyhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ def get_alchemical_waters(
)[0]

solvent_indices = {
atom.residue.index
for atom in traj.topology.atoms
if (atom.index in water_atoms) and (atom.index not in excluded_waters)
atom.residue.index
for atom in traj.topology.atoms
if (atom.index in water_atoms) and (atom.index not in excluded_waters)
}

if len(solvent_indices) < 1:
Expand Down
2 changes: 1 addition & 1 deletion openfe/protocols/openmm_rfe/equil_rfe_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
import uuid
import warnings
from collections import defaultdict
from collections.abc import Iterable
from itertools import chain
from typing import Any, Optional, Union
from collections.abc import Iterable

import gufe
import matplotlib.pyplot as plt
Expand Down
2 changes: 1 addition & 1 deletion openfe/protocols/openmm_utils/charge_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import copy
import sys
import warnings
from typing import Literal, Optional, Union
from collections.abc import Callable
from typing import Literal, Optional, Union

import numpy as np
from openff.toolkit import Molecule as OFFMol
Expand Down
4 changes: 2 additions & 2 deletions openfe/protocols/openmm_utils/omm_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class Config:

timestep: FloatQuantity[femtosecond] = 4 * unit.femtosecond
"""Size of the simulation timestep. Default 4 * unit.femtosecond."""
langevin_collision_rate: FloatQuantity[1/picosecond] = 1.0 / unit.picosecond
langevin_collision_rate: FloatQuantity[1 / picosecond] = 1.0 / unit.picosecond
"""Collision frequency. Default 1.0 / unit.pisecond."""
reassign_velocities = False
"""
Expand Down Expand Up @@ -364,7 +364,7 @@ class Config:
Default `250`.
"""
early_termination_target_error: FloatQuantity[kcal/mol] | None = 0.0 * unit.kilocalorie_per_mole
early_termination_target_error: FloatQuantity[kcal / mol] | None = 0.0 * unit.kilocalorie_per_mole
# todo: have default ``None`` or ``0.0 * unit.kilocalorie_per_mole``
# (later would give an example of unit).
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# For details, see https://github.com/OpenFreeEnergy/openfe
import abc
import copy
from typing import Optional, Type
from collections.abc import Callable, Iterable
from typing import Optional, Type

from gufe import (
AlchemicalNetwork,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This code is part of OpenFE and is licensed under the MIT license.
# For details, see https://github.com/OpenFreeEnergy/openfe
import abc
from enum import Enum
from collections.abc import Iterable
from enum import Enum

from gufe import ChemicalSystem

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This code is part of OpenFE and is licensed under the MIT license.
# For details, see https://github.com/OpenFreeEnergy/openfe

from typing import Optional
from collections.abc import Iterable
from typing import Optional

from gufe import ChemicalSystem, Component, ProteinComponent, SmallMoleculeComponent, SolventComponent

Expand Down
2 changes: 1 addition & 1 deletion openfe/setup/ligand_network_planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import math
import warnings
from collections import Counter
from collections.abc import Callable, Iterable
from pathlib import Path
from typing import Optional, Union
from collections.abc import Callable, Iterable

import networkx as nx
from gufe import AtomMapper, SmallMoleculeComponent
Expand Down
2 changes: 1 addition & 1 deletion openfe/tests/utils/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This code is part of OpenFE and is licensed under the MIT license.
# For details, see https://github.com/OpenFreeEnergy/openfe
from collections.abc import Iterable
from importlib import resources
from typing import NamedTuple
from collections.abc import Iterable

import pytest
from rdkit import Chem
Expand Down
2 changes: 1 addition & 1 deletion openfe/utils/system_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import socket
import subprocess
import sys
from typing import Optional
from collections.abc import Iterable
from typing import Optional

import psutil
from psutil._common import bytes2human
Expand Down
2 changes: 1 addition & 1 deletion openfe/utils/visualization_3D.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Dict, Optional, Tuple, Union
from collections.abc import Iterable
from typing import Dict, Optional, Tuple, Union

import numpy as np
from matplotlib import pyplot as plt
Expand Down
2 changes: 1 addition & 1 deletion openfecli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import functools
import importlib
import logging
from collections.abc import Callable
from datetime import datetime
from typing import Optional
from collections.abc import Callable

import click

Expand Down

0 comments on commit d3e06e5

Please sign in to comment.