Skip to content

Commit

Permalink
black run
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Dec 15, 2023
1 parent 236390d commit 0efba3d
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 0efba3d

Please sign in to comment.