We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab7af90 commit a566f55Copy full SHA for a566f55
src/murfey/server/ispyb.py
@@ -120,9 +120,9 @@ def do_update_atlas(
120
try:
121
with Session() as db:
122
atlas = db.query(Atlas).filter(Atlas.atlasId == atlas_id).one()
123
- atlas.atlasImage = atlas_image
124
- atlas.pixelSize = pixel_size
125
- atlas.cassetteSlot = slot
+ atlas.atlasImage = atlas_image or atlas.atlasImage
+ atlas.pixelSize = pixel_size or atlas.pixelSize
+ atlas.cassetteSlot = slot or atlas.cassetteSlot
126
db.add(atlas)
127
db.commit()
128
return {"success": True, "return_value": atlas.atlasId}
0 commit comments