karpov-sv / stdpipe

Simple Transient Detection Pipeline
https://stdpipe.readthedocs.io
MIT License
12 stars 8 forks source link

bg_mask.multiply(image1) #8

Closed mcoughlin closed 1 year ago

mcoughlin commented 1 year ago

https://github.com/karpov-sv/stdpipe/blob/master/stdpipe/photometry.py#L806

I get:

bg_vals = bg_mask.multiply(image1)[bg_mask.data > 0]

TypeError: 'NoneType' object is not subscriptable

I know it works sometimes, but should do some handling, i.e. check that bg_mask.multiply(image1) is not None and then get the array.

karpov-sv commented 1 year ago

Care to provide specific use case when this error is triggered?..

karpov-sv commented 1 year ago

Hopefully fixed in c89152decb6664896b0bc614f5eeed52816ab27f, please check.

mcoughlin commented 1 year ago

@karpov-sv yes it passed, thanks!