pmelchior / scarlet2

Scarlet, all new and shiny
MIT License
14 stars 3 forks source link

Fixes `Frame.from_observations` & `frame.get_sign` #80

Open b-remy opened 2 days ago

b-remy commented 2 days ago

Looking at #79 , I figured that Observation.render could break if the model frame was initialized with Frame.from_observations, because frame and observations may have different WCSs but the same pixel scale. The ConvolutionRenderer would therefore be used, but frames boxes would not necessarily be the same sizes. This PR fixes it.

I also removed all the numpy dependencies in frame.py and used jax.numpy instead.

b-remy commented 2 days ago

Also rounded the ouput of frame.get_sign fixing #79 . Tests are still passing @pmelchior