Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial flexure options #1855

Open
wants to merge 74 commits into
base: develop
Choose a base branch
from
Open

Spatial flexure options #1855

wants to merge 74 commits into from

Conversation

rcooke-ast
Copy link
Collaborator

@rcooke-ast rcooke-ast commented Sep 11, 2024

This PR reworks a lot of the code that uses spatial flexure. The main change here is that instead of a single value, the spatial flexure is now stored for each slit edge. I haven't yet implemented the edge-by-edge spatial flexure adjustment. These updates are just to ensure that the code base is unaffected by the change from a single floating point value to a 2D array.

There is a matching PR in the dev-suite. I'm running tests now...

Base automatically changed from order_sync to develop October 29, 2024 00:55
@tbowers7 tbowers7 linked an issue Nov 5, 2024 that may be closed by this pull request
@rcooke-ast rcooke-ast changed the base branch from develop to dev2rel November 17, 2024 10:45
Base automatically changed from dev2rel to develop November 18, 2024 16:28
rcooke-ast and others added 3 commits November 21, 2024 19:16
# Conflicts:
#	doc/releases/1.17.1dev.rst
#	presentations/py/users.py
#	pypeit/wavetilts.py
# Conflicts:
#	doc/calibrations/flexure.rst
#	doc/releases/1.17.2dev.rst
#	pypeit/core/flexure.py
#	pypeit/images/rawimage.py
#	pypeit/par/pypeitpar.py
if self.par['spat_flexure_correct'] else None
self.spat_flexure_shift = None
if self.par['spat_flexure_method'] != "skip" or not np.ma.is_masked(manual_spat_flexure):
self.spat_flexure_shift = self.spatial_flexure_shift(slits, method=self.par['spat_flexure_method'],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @rcooke-ast . Just a little confusion here.

  • maxlag is not a parameter of self.spatial_flexure_shift() anymore. self.par['spat_flexure_maxlag'] is passed directly to flexure.spat_flexure_shift()
  • you can do the same with method. Since it is defined in self.par, you can just pass it directly to flexure.spat_flexure_shift()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes, good call! I'll update it 👍

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.

Manual spatial flexure correction for calibration frames
4 participants