|
4 | 4 | import textwrap |
5 | 5 | import warnings |
6 | 6 | from numbers import Number |
7 | | -from typing import Optional, Any, Union, TYPE_CHECKING |
| 7 | +from typing import TYPE_CHECKING, Any, Optional, Union |
8 | 8 |
|
9 | 9 | import numpy as np |
10 | 10 | import numpy.typing as npt |
|
16 | 16 | from scipy.integrate import solve_ivp |
17 | 17 |
|
18 | 18 | 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 |
22 | 19 | 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 |
23 | 23 |
|
24 | 24 | if TYPE_CHECKING: |
25 | 25 | from hdxms_datasets import HDXDataSet |
@@ -116,7 +116,6 @@ def __getitem__(self, item) -> pd.Series: |
116 | 116 | def apply_interval(self, array_or_series: Union[np.ndarray, pd.Series]) -> pd.Series: |
117 | 117 | """Returns the section of `array_or_series` in the interval |
118 | 118 |
|
119 | | -
|
120 | 119 | Given a Numpy array or Pandas series with a length equal to the full protein, |
121 | 120 | returns the section of the array equal to the covered |
122 | 121 | 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): |
286 | 285 | ) |
287 | 286 |
|
288 | 287 | @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: |
290 | 291 | """Create an HDXMeasurement object from a HDXDataSet object. |
291 | 292 |
|
292 | 293 | Args: |
|
0 commit comments