LSSTDESC / descwl-shear-sims

simple simulations for testing weak lensing shear measurement
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

trivial sim feature parity #115

Closed esheldon closed 4 years ago

esheldon commented 4 years ago

Bring trivial sim up to near feature parity with sim

Most features are there, but many of the options are not exposed. e.g. there is an option to add stars but you don't get to choose how they are added.

The tests all pass but I don't consider that good enough for a merge, partly because more unit tests are needed. But it is also due to a change in philosophy:

I now only consider a feature ready if I have run it all the way to recovered shear and I understand the result

This means waiting until a potentially long test is run, days or even weeks depending on the availability of computing resources.

TODO on this PR

esheldon commented 4 years ago

At some point we should rename this from trivial to something better.

beckermr commented 4 years ago

At some point we should rename this from trivial to something better.

The only difference is a fully flat geometry. Maybe we could use that?

esheldon commented 4 years ago

I'm using TAN wcs which isn't flat, what do you mean?

That does remind me that SIP is not currently available, will add to TODO

beckermr commented 4 years ago

Well when you render with galsim, you are using only the WCS jacobian at the center of the field. Then you declare a TAN WCS that has the same jacobian at the center.

beckermr commented 4 years ago

The sims I wrote attempt to use the actual WCS everywhere.

esheldon commented 4 years ago

right. I think this is demonstrating that for these small fields the jacobian is a good enough approximation. We don't plan to simulate the whole sky here, just tiny portions

And previous tests showeed that even with typical distortions it is ok

beckermr commented 4 years ago

I am not so sure. We use different bits of the jacobians in different places.

esheldon commented 4 years ago

I think this is ready.

I want to put off some additional features for a separate PR, such as optimizations and testing with separate coadds in each band

esheldon commented 4 years ago

by "full module" do you mean sub-package?

beckermr commented 4 years ago

Yes

esheldon commented 4 years ago

I've added the docs.

I would like to do the refactor of trivial_sim.py into a sub-package in a separate PR