Skip to content

Commit

Permalink
drop brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Oct 6, 2023
1 parent e6b6d38 commit 551af41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tape/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def assign(self, table="object", temporary=False, **kwargs):
post_cols = self._object.columns

if temporary:
self._object_temp.extend([col for col in post_cols if col not in pre_cols])
self._object_temp.extend(col for col in post_cols if col not in pre_cols)

elif table == "source":
pre_cols = self._source.columns
Expand All @@ -432,7 +432,7 @@ def assign(self, table="object", temporary=False, **kwargs):
post_cols = self._source.columns

if temporary:
self._source_temp.extend([col for col in post_cols if col not in pre_cols])
self._source_temp.extend(col for col in post_cols if col not in pre_cols)

else:
raise ValueError(f"{table} is not one of 'object' or 'source'")
Expand Down Expand Up @@ -576,7 +576,7 @@ def calc_nobs(self, by_band=False, label="nobs", temporary=True):
self._object = self._object.assign(**{label + "_" + band: band_counts[band] for band in bands})

if temporary:
self._object_temp.extend([label + "_" + band for band in bands])
self._object_temp.extend(label + "_" + band for band in bands)

else:
counts = self._source.groupby([self._id_col])[[self._band_col]].aggregate("count")
Expand Down

0 comments on commit 551af41

Please sign in to comment.