-
Notifications
You must be signed in to change notification settings - Fork 0
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
DM-42157: Improve model configuration and evaluation #27
Conversation
These could be separated but are all ultimately to support fitting Observations with different CoordinateSystems.
5369a9c
to
d4e85e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of small comments, mostly requesting missing underscores to be inserted in variable names.
), | ||
rho=g2f.RhoParameterD(self.rho.value_initial, transform=transform_rho, fixed=self.rho.fixed), | ||
) | ||
integralmodel: g2f.IntegralModel, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very picky detail here, but I think that the parameter should be renamed integral_model
.
), | ||
size_y=g2f.ReffYParameterD( | ||
self.size_y.value_initial, transform=transform_size, fixed=self.size_y.fixed | ||
), | ||
rho=g2f.RhoParameterD(self.rho.value_initial, transform=transform_rho, fixed=self.rho.fixed), | ||
) | ||
sersicindex = g2f.SersicMixComponentIndexParameterD( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar, underscore to sersic_index
.
tests/test_fit_bootstrap_model.py
Outdated
|
||
@pytest.fixture(scope="module") | ||
def configfitter_psfs(channels) -> dict[g2f.Channel, CatalogExposurePsfBootstrap]: | ||
configdatas = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config_datas
tests/test_fit_bootstrap_model.py
Outdated
for results in table_psf_fits.values(): | ||
@pytest.fixture(scope="module") | ||
def configdata_sources( | ||
configfitter_psfs, tables_psf_fits, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config_fitter_psfs
tests/test_fit_bootstrap_model.py
Outdated
def configdata_sources( | ||
configfitter_psfs, tables_psf_fits, | ||
) -> dict[g2f.Channel, CatalogExposureSourcesBootstrap]: | ||
configdatas = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config_datas
tests/test_fit_bootstrap_model.py
Outdated
), | ||
n_sources=n_sources, | ||
) | ||
configdata = CatalogExposureSourcesBootstrap( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config_data
tests/test_fit_bootstrap_model.py
Outdated
return configdatas | ||
|
||
|
||
def test_fit_psf(configfitter_psfs, tables_psf_fits): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config_fitter_psfs
This happens if a band (observation) is dropped, e.g. due to no/bad data.
d4e85e9
to
67b5df8
Compare
67b5df8
to
c1bd744
Compare
This includes several important bug fixes as well as feature additions.