Skip to content

Commit

Permalink
Fix for N/A detector size in configdb
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Daily committed Jan 18, 2024
1 parent 9a99f8d commit e935897
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion banzai/dbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ def parse_configdb(configdb_address):
for ins in tel['instrument_set']:
for sci_cam in ins['science_cameras']:
if sci_cam is not None:
nx, ny = sci_cam['camera_type']['size'].split('x')
camera_size = sci_cam['camera_type']['size']
if camera_size == 'N/A':
continue
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 e935897

Please sign in to comment.