Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#229)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.12.0 → 23.3.0](psf/black@22.12.0...23.3.0)
- [github.com/PyCQA/isort: 5.11.4 → 5.12.0](PyCQA/isort@5.11.4...5.12.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Apr 17, 2023
1 parent f761b57 commit 4351bd1
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -2,12 +2,12 @@ ci:
autoupdate_schedule: "quarterly"
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black
files: ^physical_validation
- repo: https://github.com/PyCQA/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort
files: ^physical_validation
Expand Down
1 change: 0 additions & 1 deletion physical_validation/data/unit_data.py
Expand Up @@ -47,7 +47,6 @@ def __init__(
pressure_str: str = "PRESS",
time_str: str = "TIME",
):

self.__kb = float(kb)
self.__energy_str = str(energy_str)
self.__energy_conversion = float(energy_conversion)
Expand Down
1 change: 0 additions & 1 deletion physical_validation/tests/test_data_observable_data.py
Expand Up @@ -21,7 +21,6 @@


def test_observable_data_getters_and_setters() -> None:

# Check that newly created observable data object has `None` frames
observable_data = ObservableData()
assert observable_data.nframes is None
Expand Down
1 change: 0 additions & 1 deletion physical_validation/tests/test_data_trajectory_data.py
Expand Up @@ -21,7 +21,6 @@


def test_trajectory_data_getters_and_setters() -> None:

num_frames = 3
num_atoms = 5
position = np.random.random((num_frames, num_atoms, 3))
Expand Down
4 changes: 0 additions & 4 deletions physical_validation/util/ensemble.py
Expand Up @@ -84,7 +84,6 @@ def chemical_potential_energy(
def generate_histograms(
traj1: np.ndarray, traj2: np.ndarray, g1: float, g2: float, bins: np.ndarray
) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:

n1 = np.size(traj1)
n2 = np.size(traj2)

Expand All @@ -110,7 +109,6 @@ def do_linear_fit(
xlabel: str,
ylabel: str,
) -> Tuple[np.ndarray, np.ndarray]:

h1, h2, dh1, dh2 = generate_histograms(traj1, traj2, g1, g2, bins)

# v copied from checkensemble.py v
Expand Down Expand Up @@ -187,7 +185,6 @@ def do_max_likelihood_fit(
init_params: np.ndarray,
verbose: bool,
) -> Tuple[np.ndarray, np.ndarray]:

# ============================================================= #
# Define (negative) log-likelihood function and its derivatives #
# ============================================================= #
Expand Down Expand Up @@ -1136,7 +1133,6 @@ def check_1d(
trajectory.bootstrap(traj2, bootstrap_repetitions),
)
):

# use overlap region
t1, t2, min_ene, max_ene = trajectory.overlap(traj1=t1, traj2=t2)
# calculate inefficiency
Expand Down
2 changes: 0 additions & 2 deletions physical_validation/util/gromacs_interface.py
Expand Up @@ -41,7 +41,6 @@ def __init__(
dp: bool = False,
includepath: Optional[Union[str, List[str]]] = None,
):

self._exe = None
self._dp = False
self._includepath = None
Expand Down Expand Up @@ -110,7 +109,6 @@ def get_quantities(
end: Optional[float] = None,
args: Optional[List[str]] = None,
) -> Dict[str, np.ndarray]:

if args is None:
args = []

Expand Down
1 change: 0 additions & 1 deletion physical_validation/util/integrator.py
Expand Up @@ -53,7 +53,6 @@ def check_convergence(
screen: bool,
filename: Optional[str],
) -> float:

assert isinstance(const_traj, dict)
assert len(const_traj) >= 2

Expand Down
1 change: 0 additions & 1 deletion physical_validation/util/plot.py
Expand Up @@ -35,7 +35,6 @@ def plot(
filename: Optional[str] = None,
screen: bool = True,
) -> None:

try:
import matplotlib as mpl
import matplotlib.pyplot as plt
Expand Down

0 comments on commit 4351bd1

Please sign in to comment.