Skip to content

Feature/data offset#171

Merged
Jammy2211 merged 14 commits intomainfrom
feature/data_offset
May 14, 2024
Merged

Feature/data offset#171
Jammy2211 merged 14 commits intomainfrom
feature/data_offset

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Extends the DatasetModel object added in PyAutoLabs/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
@Jammy2211 Jammy2211 deleted the feature/data_offset branch March 24, 2025 19:48
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