Skip to content

Feature/iterate refactor - #264

Merged
Jammy2211 merged 36 commits into
mainfrom
feature/iterate_refactor
Apr 8, 2024
Merged

Feature/iterate refactor#264
Jammy2211 merged 36 commits into
mainfrom
feature/iterate_refactor

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Oversampling evaluates a light or mass profile with high precision, where an iterative grid may be used which increases the sub_size until a threshold precision is met.

This was previously implemented using a Grid2DIterate object. However, this led to a lot of code repetition with the Grid2D object and an unclear API in terms of how over sampling is performed.

This PR removes the Grid2DIterate object and moves the functionality into an OverSampleIterate object, which can be passed into a Grid2D in order to perform iterative oversampling.

This also led me to refactor the dataset package, removing Settings objects which wrapped the Grid2DIterate object in awkward ways, cleaning up the code even more!

A follow up PR will add a second OverSample object, which performs the normal over sampling which currently occur if the Grid2D does not have an over_sample object. This has the bold goal of removing the sub_size from all Mask and data structure objects, would has the potential to make the source code way cleaner. Wish me luck!

@Jammy2211
Jammy2211 requested a review from rhayes777 March 29, 2024 17:49
@Jammy2211
Jammy2211 merged commit 14c55ab into main Apr 8, 2024
@Jammy2211
Jammy2211 deleted the feature/iterate_refactor branch March 24, 2025 19:50
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.

1 participant