Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Jan 2, 2025
1 parent 159e85e commit 06f2ca2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tdastro/math_nodes/given_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ class TableSampler(NumpyRandomFunc):
----------
data : astropy.table.Table
The object containing the data to sample.
columns : list of str
The column names for the output columns.
in_order : bool
Return the given data in order of the rows (True). If False, performs
random sampling with replacement. Default: False
Expand Down Expand Up @@ -215,7 +213,7 @@ def compute(self, graph_state, rng_info=None, **kwargs):

# Parse out each column into a separate parameter with the column name as its name.
results = []
for attr_name in self.columns:
for attr_name in self.outputs:
attr_values = np.asarray(self.data[attr_name][sample_inds])
if graph_state.num_samples == 1:
results.append(attr_values[0])
Expand Down

0 comments on commit 06f2ca2

Please sign in to comment.