Skip to content

Commit

Permalink
Support for object dictionaries, NcmObjDictStr and NcmObjDictInt. (#134)
Browse files Browse the repository at this point in the history
* Support for object dictionaries, NcmObjDictStr and NcmObjDictInt.
* Unit testing
* Updated stubs
* Fixed leaks
  • Loading branch information
vitenti committed Jan 16, 2024
1 parent 4d00c3e commit 130a973
Show file tree
Hide file tree
Showing 15 changed files with 2,898 additions and 443 deletions.
4 changes: 2 additions & 2 deletions numcosmo/math/ncm_fit_esmcmc.c
Expand Up @@ -675,7 +675,7 @@ _ncm_fit_esmcmc_worker_dup (gpointer userdata)
fw->fit = ncm_fit_dup (self->fit, self->ser);

if (self->func_oa != NULL)
fw->funcs_array = ncm_obj_array_dup (self->func_oa, self->ser);
fw->funcs_array = ncm_serialize_dup_array (self->ser, self->func_oa);
else
fw->funcs_array = NULL;

Expand Down Expand Up @@ -836,7 +836,7 @@ ncm_fit_esmcmc_set_data_file (NcmFitESMCMC *esmcmc, const gchar *filename)
self->func_oa_file = g_strdup_printf ("%s.oa", base_name);
g_free (base_name);

ncm_obj_array_save (self->func_oa, ser, self->func_oa_file, TRUE);
ncm_serialize_array_to_key_file (ser, self->func_oa, self->func_oa_file, TRUE);

ncm_serialize_free (ser);
}
Expand Down
2 changes: 1 addition & 1 deletion numcosmo/math/ncm_model.c
Expand Up @@ -858,7 +858,7 @@ ncm_model_class_set_vparam_obj (NcmModelClass *model_class, guint vparam_id, Ncm

g_object_class_install_property (object_class, prop_fit_id,
g_param_spec_variant (param_fit_name, NULL, param_fit_symbol,
G_VARIANT_TYPE_ARRAY, NULL,
G_VARIANT_TYPE ("ab"), NULL,
G_PARAM_READWRITE));
g_free (param_length_name);
g_free (param_length_symbol);
Expand Down

0 comments on commit 130a973

Please sign in to comment.