Skip to content

Commit

Permalink
remove manual divisions setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Mar 26, 2024
1 parent 51e8562 commit 3795269
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/tape/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,12 +1226,7 @@ def _batch_apply(df, func, on, *args, **kwargs):
)

# Output standardization

batch = self._standardize_batch(batch, on, by_band)
# Inherit divisions if known from source and the resulting index is the id
# Groupby on index should always return a subset that adheres to the same divisions criteria
if self.source.known_divisions and batch.index.name == self._id_col:
batch.divisions = self.source.divisions

if label is not None:
if label == "":
Expand Down Expand Up @@ -2473,11 +2468,6 @@ def sf2(self, sf_method="basic", argument_container=None, use_map=True):
else:
result = self.batch(calc_sf2, use_map=use_map, argument_container=argument_container)

# Inherit divisions information if known
if self.source.known_divisions and self.object.known_divisions:
pass # TODO: Can no longer directly set divisions
# result.divisions = self.source.divisions

return result

def _translate_meta(self, meta):
Expand Down

0 comments on commit 3795269

Please sign in to comment.