Skip to content

allow multiplying images where GAIN etc is not set#355

Open
griffin-h wants to merge 2 commits intoLCOGT:mainfrom
so-90prime:master
Open

allow multiplying images where GAIN etc is not set#355
griffin-h wants to merge 2 commits intoLCOGT:mainfrom
so-90prime:master

Conversation

@griffin-h
Copy link

Multiplying an image by a constant crashes with a KeyError if GAIN, SATURATE, or MAXLIN are not set in the headers. This switches the multiplication method to using the gain, saturate, and max_linearity properties, which have an appropriate default set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant