Skip to content

Commit b5b7f88

Browse files
committed
style
1 parent a321a3f commit b5b7f88

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pyhdx/models.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import textwrap
55
import warnings
66
from numbers import Number
7-
from typing import Optional, Any, Union, TYPE_CHECKING
7+
from typing import TYPE_CHECKING, Any, Optional, Union
88

99
import numpy as np
1010
import numpy.typing as npt
@@ -16,10 +16,10 @@
1616
from scipy.integrate import solve_ivp
1717

1818
from pyhdx.alignment import align_dataframes
19-
from pyhdx.fileIO import dataframe_to_file
20-
from pyhdx.process import verify_sequence, parse_temperature, correct_d_uptake, apply_control
21-
from pyhdx.support import reduce_inter, dataframe_intersection
2219
from pyhdx.config import cfg
20+
from pyhdx.fileIO import dataframe_to_file
21+
from pyhdx.process import apply_control, correct_d_uptake, parse_temperature, verify_sequence
22+
from pyhdx.support import dataframe_intersection, reduce_inter
2323

2424
if TYPE_CHECKING:
2525
from hdxms_datasets import HDXDataSet
@@ -116,7 +116,6 @@ def __getitem__(self, item) -> pd.Series:
116116
def apply_interval(self, array_or_series: Union[np.ndarray, pd.Series]) -> pd.Series:
117117
"""Returns the section of `array_or_series` in the interval
118118
119-
120119
Given a Numpy array or Pandas series with a length equal to the full protein,
121120
returns the section of the array equal to the covered
122121
region. Returned series length is equal to number of columns in the X matrix
@@ -286,7 +285,9 @@ def __init__(self, data: pd.DataFrame, **metadata: Any):
286285
)
287286

288287
@classmethod
289-
def from_dataset(cls, dataset: HDXDataSet, state: str | int, drop_first=cfg.analysis.drop_first, **metadata) -> HDXMeasurement:
288+
def from_dataset(
289+
cls, dataset: HDXDataSet, state: str | int, drop_first=cfg.analysis.drop_first, **metadata
290+
) -> HDXMeasurement:
290291
"""Create an HDXMeasurement object from a HDXDataSet object.
291292
292293
Args:

0 commit comments

Comments
 (0)