Skip to content

Commit

Permalink
Fix oversight in Amplifier I/O.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Nov 5, 2019
1 parent 9c63ae3 commit 2861bbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/cameraGeom/Amplifier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ void Amplifier::toRecord(table::BaseRecord & record) const {
record.set(helper.saturation, fields.saturation);
record.set(helper.suspectLevel, fields.suspectLevel);
record.set(helper.readoutCorner, static_cast<int>(fields.readoutCorner));
ndarray::Array<double, 1, 1> coeffs = ndarray::copy(fields.linearityCoeffs);
record.set(helper.linearityCoeffs, coeffs);
record.set(helper.linearityType, fields.linearityType);
record.set(helper.rawBBox, fields.rawBBox);
record.set(helper.rawDataBBox, fields.rawDataBBox);
record.set(helper.rawFlipX, fields.rawFlipX);
Expand Down
2 changes: 0 additions & 2 deletions tests/test_cameraGeom.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def testCameraRaises(self):
with self.assertRaises(pexExcept.InvalidParameterError):
camera.transform(point, FOCAL_PLANE, CameraSys("pixels", "invalid"))

@unittest.expectedFailure
def testDetectorCollectionPersistence(self):
"""Test that we can round-trip a DetectorCollection through FITS I/O.
"""
Expand All @@ -336,7 +335,6 @@ def testDetectorCollectionPersistence(self):
collectionOut = DetectorCollection.readFits(filename)
self.assertDetectorCollectionsEqual(collectionIn, collectionOut)

@unittest.expectedFailure
def testCameraPersistence(self):
"""Test that we can round-trip a Camera through FITS I/O.
"""
Expand Down

0 comments on commit 2861bbd

Please sign in to comment.