Skip to content

Commit

Permalink
Specify extendedness values in TestDiffMatched
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Nov 27, 2023
1 parent 88cefd7 commit 8e9945a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ def _testMatchedRefCoaddMetricDerived(self, type_metric: type[MatchedRefCoaddDif
keys = set(k[0] for k in tester.getInputSchema())
self.assertGreater(len(keys), 0)
self.assertGreater(len(list(tester.configureMetrics())), 0)
data = {key.format(band=self.band_default): np.arange(5.0) for key in keys}
data = {}
n_data = 10
for key in keys:
if key.endswith("xtendedness"):
values = np.linspace(0.0, 1.0, n_data)
else:
values = np.linspace(0.1, 15.0, n_data)
data[key.format(band=self.band_default)] = values

output = tester(data, skymap=None, plotInfo=plotInfo)
self.assertGreater(len(output), 0)

Expand Down

0 comments on commit 8e9945a

Please sign in to comment.