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

WL binned likelihood object #77

Merged
merged 37 commits into from Mar 19, 2023
Merged

WL binned likelihood object #77

merged 37 commits into from Mar 19, 2023

Conversation

caioolivv
Copy link
Member

Implementing binned object to compare to unbinned and KDE methods.

Caio Lima de Oliveira and others added 21 commits October 26, 2022 11:28
…g observable. Created new object class nc_galaxy_wl_ellipticity_kde and moved calculations from nc_galxy_wl to nc_galaxy_wl_ellipticity_kde. Introduced new method nc_galaxy_wl_dist_m2lnP_initial_prep. Edited Makefile.am, Makefile.in, ncm_cfg.c and numcosmo.h to accomodate changes. Changes have made calculations slower but results seem to be in line with previous version.
…ave fixed memory leak (?) issue on last commit
…s initially causing the segmentation fault.
… self->kde, epdf_bw_type stayed as FIXED instead of being recast as RoT.
…working on creating a NcmObjArray with the galaxy data belonging to each bin. Probably (certainly) very buggy.
@coveralls
Copy link

coveralls commented Feb 24, 2023

Coverage Status

Coverage: 49.579% (+0.04%) from 49.534% when pulling 221b94f on wl_binned_likelihood into ac4bb4e on master.

@caioolivv
Copy link
Member Author

Warning is being thrown when compiling:

(process:427516): GLib-GObject-CRITICAL **: 19:06:42.435: g_param_spec_object: assertion 'g_type_is_a (object_type, G_TYPE_OBJECT)' failed

(process:427516): GLib-GObject-CRITICAL **: 19:06:42.435: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(process:427516): GLib-GObject-CRITICAL **: 19:06:42.435: g_param_spec_ref_sink: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(process:427516): GLib-GObject-CRITICAL **: 19:06:42.435: g_param_spec_unref: assertion 'G_IS_PARAM_SPEC (pspec)' failed

I think it's being thrown when registering property PROP_BIN_OBS, but can't figure why bin_obs would not be NCM_TYPE_OBJ_ARRAY when I'm declaring it as NcmObjArray and then creating it with ncm_obj_array_new (). Any idea why this would happen @vitenti ?

@caioolivv caioolivv self-assigned this Mar 8, 2023
@caioolivv caioolivv marked this pull request as ready for review March 11, 2023 04:31
@caioolivv caioolivv requested a review from vitenti March 11, 2023 04:31
@caioolivv
Copy link
Member Author

Warning is being thrown when compiling:

(process:427516): GLib-GObject-CRITICAL **: 19:06:42.435: g_param_spec_object: assertion 'g_type_is_a (object_type, G_TYPE_OBJECT)' failed

(process:427516): GLib-GObject-CRITICAL **: 19:06:42.435: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(process:427516): GLib-GObject-CRITICAL **: 19:06:42.435: g_param_spec_ref_sink: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(process:427516): GLib-GObject-CRITICAL **: 19:06:42.435: g_param_spec_unref: assertion 'G_IS_PARAM_SPEC (pspec)' failed

I think it's being thrown when registering property PROP_BIN_OBS, but can't figure why bin_obs would not be NCM_TYPE_OBJ_ARRAY when I'm declaring it as NcmObjArray and then creating it with ncm_obj_array_new (). Any idea why this would happen @vitenti ?

Previous warnings were caused because g_param_spec_boxed should be used for this property. Also, _ should not be used in properties names, so I fixed it.

Copy link
Contributor

@vitenti vitenti left a comment

Choose a reason for hiding this comment

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

Change the copy write notice to include your name.

@vitenti vitenti merged commit 26493b8 into master Mar 19, 2023
6 checks passed
@vitenti vitenti deleted the wl_binned_likelihood branch March 19, 2023 01:36
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.

None yet

3 participants