Skip to content

Commit f1ac33f

Browse files
committed
formatted
1 parent 6ecce0c commit f1ac33f

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

docs/conf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898

9999
# sphinx-panels shouldn't add bootstrap css since the pydata-sphinx-theme
100100
# already loads it
101-
#panels_add_bootstrap_css = False
101+
# panels_add_bootstrap_css = False
102102

103103
# The name of the Pygments (syntax highlighting) style to use.
104104
pygments_style = "sphinx"
@@ -343,7 +343,7 @@ def get_items(self, names):
343343
# html_theme_path = guzzle_sphinx_theme.html_theme_path()
344344

345345
html_theme_options = {
346-
#"google_analytics_id": "UA-27880019-2",
346+
# "google_analytics_id": "UA-27880019-2",
347347
"github_url": "https://github.com/staircase-dev/staircase",
348348
"navbar_end": ["navbar-icon-links"],
349349
}
@@ -364,12 +364,11 @@ def get_items(self, names):
364364
]
365365

366366
html_context = {
367-
# ...
368-
"default_mode": "light"
367+
# ...
368+
"default_mode": "light"
369369
}
370370

371371

372-
373372
def setup(app):
374373
# app.add_css_file("custom.css")
375374
app.add_autodocumenter(AccessorDocumenter)

staircase/core/ops/relational.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ def func(self, other):
3939
elif self._data is None or other._data is None:
4040
if other._data is None: # self._data exists
4141
values = self._get_values()
42-
new_values = numpy_relational(values, other.initial_value)*1
43-
#new_values[values.isna()] = np.nan # *1 converts bool to nan where applicable
42+
new_values = numpy_relational(values, other.initial_value) * 1
43+
# new_values[values.isna()] = np.nan # *1 converts bool to nan where applicable
4444
new_index = self._data.index
4545
else: # other._data exists
4646
values = other._get_values()
4747
new_values = numpy_relational(self.initial_value, values)
48-
#new_values[values.isna()] = np.nan # *1 converts bool to nan where applicable
48+
# new_values[values.isna()] = np.nan # *1 converts bool to nan where applicable
4949
new_index = other._data.index
5050

5151
new_instance = sc.Stairs._new(

tests/test_floats/test_floats_distribution.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ def make_expected_result(interval_index, lower, upper):
9292

9393
hist = stairs_instance.clip(*bounds).hist(bins=cuts, stat="probability")
9494
expected = make_expected_result(hist.index, *bounds)
95-
assert (hist.apply(round, args=(5,)) == expected.apply(round, args=(5,))).all(), f"{bounds}, {cuts}"
95+
assert (
96+
hist.apply(round, args=(5,)) == expected.apply(round, args=(5,))
97+
).all(), f"{bounds}, {cuts}"
9698

9799

98100
@pytest.mark.parametrize(
@@ -120,7 +122,9 @@ def make_expected_result(interval_index, lower, upper):
120122
bins=cuts, closed="right", stat="probability"
121123
)
122124
expected = make_expected_result(hist.index, *bounds)
123-
assert (hist.apply(round, args=(5,)) == expected.apply(round, args=(5,))).all(), f"{bounds}, {cuts}"
125+
assert (
126+
hist.apply(round, args=(5,)) == expected.apply(round, args=(5,))
127+
).all(), f"{bounds}, {cuts}"
124128

125129

126130
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)