Skip to content

Commit

Permalink
switch evaluate -> estimate in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Jul 26, 2024
1 parent 79752eb commit 3641325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rail/interfaces/pz_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def run_cat_estimator_stage(
return stage_obj.estimate(handle)

@staticmethod
def evaluate_single_pz(
def estimate_single_pz(
stage_obj: CatEstimator,
data_table: dict,
input_size: int=1,
Expand Down
2 changes: 1 addition & 1 deletion tests/interfaces/test_pz_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_pz_factory():

input_file = find_rail_file('examples_data/testdata/validation_10gal.hdf5')

out_single = PZFactory.evaluate_single_pz(stage, {'d':np.array([1,1])})
out_single = PZFactory.estimate_single_pz(stage, {'d':np.array([1,1])})
assert out_single.npdf == 1

out_handle = PZFactory.run_cat_estimator_stage(
Expand Down

0 comments on commit 3641325

Please sign in to comment.