Skip to content

Commit 8d6ced7

Browse files
committed
Handle field warnings
1 parent 2747d0f commit 8d6ced7

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

sasdata/data_util/binning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_bin_index(self, value):
153153
2pi to 0 discontinuity.
154154
155155
:param value: A coordinate value in the binning interval along the major axis,
156-
whose bin index should be returned. Must be between min_value and max_value.
156+
whose bin index should be returned. Must be between min_value and max_value.
157157
158158
The general formula logarithm binning is:
159159
bin = floor(N * (log(x) - log(min)) / (log(max) - log(min)))

sasdata/data_util/manipulations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ class SlabX(SlabX):
323323
324324
Old signature:
325325
SlabX(x_min=0, x_max=0, y_min=0, y_max=0, bin_width=0.001, fold=False)
326+
326327
New signature uses nbins; translate bin_width -> nbins using ceil(range/bin_width)
327328
"""
328329
def __init__(self, x_min=0.0, x_max=0.0, y_min=0.0,

sasdata/metadata.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,11 +763,11 @@ def meta_tags(obj: dataclass) -> list[str]:
763763
764764
Example:
765765
766-
>@dataclass
767-
class Thermometer:
768-
temperature: float
769-
units: str
770-
params: list
766+
> @dataclass
767+
> class Thermometer:
768+
> temperature: float
769+
> units: str
770+
> params: list
771771
> item = Example()
772772
> item.temperature = 273
773773
> item.units = "K"

0 commit comments

Comments
 (0)