Skip to content

Commit

Permalink
Revert "pre-commit auto-fixes"
Browse files Browse the repository at this point in the history
This reverts commit 134a11c.
  • Loading branch information
DanielYang59 committed Aug 5, 2024
1 parent 94ca1fd commit 638a75f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pymatgen/analysis/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from typing import TYPE_CHECKING

import numpy as np
from numpy.exceptions import RankWarning
from scipy.optimize import leastsq, minimize

from pymatgen.core.units import FloatWithUnit
Expand Down Expand Up @@ -421,7 +420,7 @@ def fit(self, min_ndata_factor=3, max_poly_order_factor=5, min_poly_order=2):
min_poly_order (int): minimum order of the polynomial to be
considered for fitting.
"""
warnings.simplefilter("ignore", RankWarning)
warnings.simplefilter("ignore", np.RankWarning)

def get_rms(x, y):
return np.sqrt(np.sum((np.array(x) - np.array(y)) ** 2) / len(x))
Expand Down

0 comments on commit 638a75f

Please sign in to comment.