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

Feature/data offset #171

Merged
merged 14 commits into from
May 14, 2024
Merged

Feature/data offset #171

merged 14 commits into from
May 14, 2024

Conversation

Jammy2211
Copy link
Owner

Extends the DatasetModel object added in Jammy2211/PyAutoArray#101 to include a grid_offset parameter.

This parameter accounts for (y,x) offsets between two datasets. It is subtracted from one dataset so as to shift the grids associated with it, which are used to perform calculations which fit the dataset, to align with another dataset.

The DatasetModel can be passed into a FitImaging or FitInterferometer object with a grid_offset and the shift will be applied before computing the model-image and log likelihood.

In the projects PyAutoGalaxy and PyAutoLens the grid_offset (y,x) values can be treated free parameters fitted for as part of a model-fit.

This means offsets between datasets (e.g. due to pointing errors) can be properly accounted for and marginalized over.

The following example scripts show examples of this for PyAutoGalaxy and PyAutoLens:

https://github.com/Jammy2211/autogalaxy_workspace/blob/main/scripts/multi/modeling/features/dataset_offsets.py
https://github.com/Jammy2211/autolens_workspace/blob/main/scripts/multi/modeling/features/dataset_offsets.py

@Jammy2211 Jammy2211 merged commit 33c03b5 into main May 14, 2024
5 of 9 checks passed
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.

2 participants