Skip to content

Commit 5fc5415

Browse files
committed
bump ruff version and precommit fixes
1 parent d4f60af commit 5fc5415

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ci:
1010
repos:
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
1212
# Ruff version.
13-
rev: v0.12.3
13+
rev: v0.14.8
1414
hooks:
1515
# Run the linter.
1616
- id: ruff

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to msibi
1+
# Contributing to msibi
22

33
Thank you for considering contributing to msibi! We welcome all contributions
44
in the form of bug reports, feature requests, code contributions, suggestions, etc.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![codecov](https://codecov.io/gh/mosdef-hub/msibi/branch/main/graph/badge.svg?token=7NFPBMBN0I)](https://codecov.io/gh/mosdef-hub/msibi)
77
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/msibi/badges/version.svg)](https://anaconda.org/conda-forge/msibi)
88
[![Citing MSIBI](https://img.shields.io/badge/DOI-10.1063%2F1.4880555-blue.svg)](http://dx.doi.org/10.1063/1.4880555)
9-
[![status](https://joss.theoj.org/papers/24d607407e78f5d8fa679e1a76684133/status.svg)](https://joss.theoj.org/papers/24d607407e78f5d8fa679e1a76684133)
9+
[![status](https://joss.theoj.org/papers/24d607407e78f5d8fa679e1a76684133/status.svg)](https://joss.theoj.org/papers/24d607407e78f5d8fa679e1a76684133)
1010

1111
A package to help you manage and run coarse-grain potential optimizations using multistate iterative Boltzmann inversion.
1212

@@ -53,7 +53,7 @@ The MSIBI package is designed to be very object oriented. Any force optimization
5353

5454
MSIBI uses [HOOMD-Blue](https://hoomd-blue.readthedocs.io/en/latest/) to run optimization simulations. It is not required that the target (i.e., atomistic) simulations use HOOMD-Blue. Also, it is not required that you be familiar with HOOMD to use MSIBI as the simulation script is automatically generated and ran. However, it is required that you pass in the choice of [method](https://hoomd-blue.readthedocs.io/en/latest/module-md-methods.html), [neighbor list](https://hoomd-blue.readthedocs.io/en/latest/module-md-nlist.html), and [thermostat](https://hoomd-blue.readthedocs.io/en/latest/module-md-methods-thermostats.html) to the `msibi.optimize.MSIBI` class. Since MSIBI utilizes Hoomd-Blue, this means that MSIBI can run on GPUs, see [Hoomd's installation guide](https://hoomd-blue.readthedocs.io/en/latest/installation.html) for instructions on ensuring your environment includes a GPU build of hoomd. The resulting coarse-grained potentials are exported in a tabulated format compatible with other simulation engines such as LAMMPS and GROMACS.
5555

56-
**Note:** The examples below serve to demonstrate the API usage, and require the user to provide the GSD files in order to run. The [Tutorials](https://msibi.readthedocs.io/en/latest/tutorials.html) contain instructions for running an MSIBI example with provided data.
56+
**Note:** The examples below serve to demonstrate the API usage, and require the user to provide the GSD files in order to run. The [Tutorials](https://msibi.readthedocs.io/en/latest/tutorials.html) contain instructions for running an MSIBI example with provided data.
5757

5858
### Quick Example: Optimizing bond-stretching
5959
Here is a simple example using MSIBI to learn a bond-stretching force from a single state point:
@@ -161,6 +161,6 @@ If you use this package, please cite the above paper. The BibTeX reference is
161161
}
162162
```
163163

164-
## Contributing to msibi
164+
## Contributing to msibi
165165
We welcome all contributions to msibi. Please see
166166
[contributing guidelines](CONTRIBUTING.md) for more information.

msibi/forces.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ class Pair(Force):
10541054
This must be an odd integer.
10551055
smoothing_order : int, optional default 2
10561056
The smoothing order used in SciPy's savgol_filter method.
1057-
correction_fit_window: int, optional default 8
1057+
correction_fit_window: int, optional default 8
10581058
The window size (number of data points) to use when fitting
10591059
the iterative potential to head and tail correction forms.
10601060
This is only used when the Force is set to be optimized.
@@ -1207,7 +1207,7 @@ class Dihedral(Force):
12071207
This must be an odd integer.
12081208
smoothing_order : int, optional default 2
12091209
The smoothing order used in SciPy's savgol_filter method.
1210-
correction_fit_window: int, optional default 10
1210+
correction_fit_window: int, optional default 10
12111211
The window size (number of data points) to use when fitting
12121212
the iterative potential to head and tail correction forms.
12131213
This is only used when the Force is set to be optimized.

msibi/tests/validation/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
from scipy.optimize import curve_fit
88

9-
from msibi import MSIBI, Bond, Angle, Pair, State
9+
from msibi import MSIBI, Angle, Bond, Pair, State
1010

1111
warnings.filterwarnings("ignore")
1212
_dir = os.path.dirname(os.path.abspath(__file__))

0 commit comments

Comments
 (0)