Skip to content

Commit

Permalink
Set hacky default for camera size if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdaily committed Jan 19, 2024
1 parent 7a9a565 commit 831d172
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions banzai/dbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ def parse_configdb(configdb_address):
if sci_cam is not None:
camera_size = sci_cam['camera_type']['size']
if camera_size == 'N/A':
continue
nx, ny = camera_size.split('x')
nx = 25
ny = 25
else:
nx, ny = camera_size.split('x')
# Convert from arcminutes to arcseconds and then to pixels
nx = int(float(nx) * 60 / float(sci_cam['camera_type']['pscale']))
ny = int(float(ny) * 60 / float(sci_cam['camera_type']['pscale']))
Expand Down

0 comments on commit 831d172

Please sign in to comment.