astro_prost

Submodules

Functions

associate_transient(idx, row, glade_catalog, ...)

Short summary.

prepare_catalog(transient_catalog, debug_names[, ...])

Short summary.

diagnose_ranking(true_index, post_probs, ...[, ...])

Short summary.

plot_match(host_ra, host_dec, true_host_ra, ...)

Short summary.

Package Contents

associate_transient(idx, row, glade_catalog, n_samples, verbose, priorfunc_z, priorfunc_offset, priorfunc_absmag, likefunc_offset, likefunc_absmag, cosmo, catalogs, cat_cols)[source]

Short summary.

Parameters:
  • idx (type) – Description of parameter idx.

  • row (type) – Description of parameter row.

  • glade_catalog (type) – Description of parameter glade_catalog.

  • n_samples (type) – Description of parameter n_samples.

  • verbose (type) – Description of parameter verbose.

  • priorfunc_z (type) – Description of parameter priorfunc_z.

  • priorfunc_offset (type) – Description of parameter priorfunc_offset.

  • priorfunc_absmag (type) – Description of parameter priorfunc_absmag.

  • likefunc_offset (type) – Description of parameter likefunc_offset.

  • likefunc_absmag (type) – Description of parameter likefunc_absmag.

  • cosmo (type) – Description of parameter cosmo.

  • catalogs (type) – Description of parameter catalogs.

  • cat_cols (type) – Description of parameter cat_cols.

Returns:

Description of returned object.

Return type:

type

prepare_catalog(transient_catalog, debug_names, transient_name_col='name', transient_coord_cols=('ra', 'dec'), debug=False)[source]

Short summary.

Parameters:
  • transient_catalog (type) – Description of parameter transient_catalog.

  • transient_name_col (type) – Description of parameter transient_name_col.

  • transient_coord_cols (type) – Description of parameter transient_coord_cols.

  • debug_names (type) – Description of parameter debug_names.

  • debug (type) – Description of parameter debug.

Returns:

Description of returned object.

Return type:

type

diagnose_ranking(true_index, post_probs, galaxy_catalog, post_offset, post_z, post_absmag, galaxy_ids, z_sn, sn_position, post_offset_true=None, post_z_true=None, post_absmag_true=None, verbose=False)[source]

Short summary.

Parameters:
  • true_index (type) – Description of parameter true_index.

  • post_probs (type) – Description of parameter post_probs.

  • galaxy_catalog (type) – Description of parameter galaxy_catalog.

  • post_offset (type) – Description of parameter post_offset.

  • post_z (type) – Description of parameter post_z.

  • post_absmag (type) – Description of parameter post_absmag.

  • galaxy_ids (type) – Description of parameter galaxy_ids.

  • z_sn (type) – Description of parameter z_sn.

  • sn_position (type) – Description of parameter sn_position.

  • post_offset_true (type) – Description of parameter post_offset_true.

  • post_z_true (type) – Description of parameter post_z_true.

  • post_absmag_true (type) – Description of parameter post_absmag_true.

  • verbose (type) – Description of parameter verbose.

Returns:

Description of returned object.

Return type:

type

plot_match(host_ra, host_dec, true_host_ra, true_host_dec, host_z_mean, host_z_std, sn_ra, sn_dec, sn_name, sn_z, bayesflag, fn)[source]

Short summary.

Parameters:
  • host_ra (type) – Description of parameter host_ra.

  • host_dec (type) – Description of parameter host_dec.

  • true_host_ra (type) – Description of parameter true_host_ra.

  • true_host_dec (type) – Description of parameter true_host_dec.

  • host_z_mean (type) – Description of parameter host_z_mean.

  • host_z_std (type) – Description of parameter host_z_std.

  • sn_ra (type) – Description of parameter sn_ra.

  • sn_dec (type) – Description of parameter sn_dec.

  • sn_name (type) – Description of parameter sn_name.

  • sn_z (type) – Description of parameter sn_z.

  • bayesflag (type) – Description of parameter bayesflag.

  • fn (type) – Description of parameter fn.

Returns:

Description of returned object.

Return type:

type