Skip to content

Commit

Permalink
[fix] acq_test: adjust acqmng.acquire() API usage
Browse files Browse the repository at this point in the history
One call wasn't updated to the (long time done) API change on acqmng.
  • Loading branch information
pieleric committed Jan 14, 2025
1 parent 7f351be commit e0424ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/odemis/acq/test/acq_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def test_metadata(self):
st = stream.StreamTree(streams=[s1, s2])
f = acqmng.acquire(st.getProjections(), settings_obs=settings_obs)
data, e = f.result()
self.assertIsNone(e)
for s in data:
self.assertTrue(model.MD_EXTRA_SETTINGS in s.metadata, "Stream %s didn't save extra metadata." % s)
self.assertEqual(data[0].metadata[model.MD_EXTRA_SETTINGS][self.ccd.name]['binning'], [(2, 2), 'px'])
Expand Down Expand Up @@ -339,7 +340,8 @@ def test_metadata(self):
specs2.detExposureTime.value = 0.05

f = acqmng.acquire([sps, sps2], settings_obs)
data = f.result()
data, exp = f.result()
self.assertIsNone(exp)

spec1_data = data[0][1]
spec2_data = data[0][3]
Expand Down

0 comments on commit e0424ae

Please sign in to comment.