spacetelescope / PASTIS

Algorithm for analytical contrast predictions of coronagraphs on segmented telescopes
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

Fix path error in tolerance plots. #151

Closed asahooexo closed 1 year ago

asahooexo commented 1 year ago

This PR fixes a path error found while generating multimode tolerance plots. It creates a new folder mu_maps inside the parent directory where the data is saved.

Fixes issue #150.

ivalaginja commented 1 year ago

The tests are failing due to an issue in hcipy that was fixed very recently in https://github.com/ehpor/hcipy/pull/170, I will look into it.

asahooexo commented 1 year ago

I see. In this way, the user has to remember exactly the name of the directory to create before calling the 'plot_multimode_surface_maps'.

Also, the plot pdf names keeps on appending. This is how it looks like.

This PR also fixes this.

Screen Shot 2023-03-03 at 11 52 23 AM