Skip to content

Commit

Permalink
black run
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Dec 14, 2023
1 parent 14174ba commit 9ba8df0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/tape/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,11 @@ def s2n_inter_quartile_range(flux, err):
# interpretted by dask as a single "index" column
batch._meta = TapeFrame(columns=on + ["result"])
if by_band:
batch = EnsembleFrame.from_dask_dataframe(batch.categorize("band").pivot_table(
index=on[0], columns=self._band_col, aggfunc="sum"
))
batch = EnsembleFrame.from_dask_dataframe(
batch.categorize("band").pivot_table(
index=on[0], columns=self._band_col, aggfunc="sum"
)
)

# Need to once again reestablish meta for the pivot
band_labels = batch.columns.values
Expand All @@ -1203,7 +1205,9 @@ def s2n_inter_quartile_range(flux, err):
if by_band:
batch = batch.categorize("band")
print(isinstance(batch, EnsembleFrame))
batch = EnsembleFrame.from_dask_dataframe(batch.pivot_table(index=on[0], columns=self._band_col, aggfunc="sum"))
batch = EnsembleFrame.from_dask_dataframe(
batch.pivot_table(index=on[0], columns=self._band_col, aggfunc="sum")
)
print(isinstance(batch, EnsembleFrame))

# Need to once again reestablish meta for the pivot
Expand Down

0 comments on commit 9ba8df0

Please sign in to comment.