MGCS-pytools 0.2.0__tar.gz → 0.4.0b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mgcs_pytools-0.4.0b1/PKG-INFO +270 -0
- mgcs_pytools-0.4.0b1/README.md +228 -0
- mgcs_pytools-0.4.0b1/pyproject.toml +98 -0
- mgcs_pytools-0.4.0b1/src/MGCS_pytools.egg-info/PKG-INFO +270 -0
- mgcs_pytools-0.4.0b1/src/MGCS_pytools.egg-info/SOURCES.txt +271 -0
- mgcs_pytools-0.4.0b1/src/MGCS_pytools.egg-info/entry_points.txt +3 -0
- mgcs_pytools-0.4.0b1/src/MGCS_pytools.egg-info/requires.txt +33 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/__init__.py +51 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/corner_cluster.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/data.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/decontamination.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/logo.svg +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/membership_overview.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/parameters.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/phot_vs_pm.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/reddening_map.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/results_dark.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/results_decontamination.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/results_overview.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/results_reddening.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/results_regions.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/roi.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/rotated_cmd.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/run.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/traces.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/vpd.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/vpd_data.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/vpd_model.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/vpd_results.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/vpd_results_parameters.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_images/vpd_run.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/index.html +397 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/docs.html +555 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/io.html +931 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/mcmc/bivariate_normal.html +533 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/mcmc/config.html +1085 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/mcmc/mcmc.html +824 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/mcmc/set_posterior.html +454 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/mcmc/utils.html +584 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/plotting/cmd.html +586 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/plotting/mcmc.html +936 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/plotting/membership.html +594 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/plotting/spatial.html +602 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/plotting/voronoi.html +600 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/statistical_membership/config.html +1168 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/statistical_membership/coordinates.html +532 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/statistical_membership/cvt_grid.html +776 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/statistical_membership/dr_correction.html +1156 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/statistical_membership/extinction.html +486 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/statistical_membership/membership.html +1398 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_modules/mgcs_pytools/statistical_membership/region_tools.html +510 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/api/index.rst.txt +13 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/api/io.rst.txt +19 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/api/mcmc.rst.txt +42 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/api/plotting.rst.txt +41 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/api/statistical_membership.rst.txt +76 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/api/utils.rst.txt +5 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/data.rst.txt +64 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/index.rst.txt +104 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/parameter_reference.rst.txt +30 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/parameters.rst.txt +41 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/results.rst.txt +99 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/roi.rst.txt +40 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/run.rst.txt +54 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/vpd_data.rst.txt +29 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/vpd_model.rst.txt +34 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/vpd_results.rst.txt +56 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/gui/vpd_run.rst.txt +24 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/index.rst.txt +93 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/installation.rst.txt +70 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/method.rst.txt +154 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/quickstart.rst.txt +86 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/tutorials/index.rst.txt +17 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/tutorials/mcmc_mixture.rst.txt +157 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_sources/tutorials/photometric_membership.rst.txt +156 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/_sphinx_javascript_frameworks_compat.js +123 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/base-stemmer.js +476 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/basic.css +906 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/check-solid.svg +4 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/clipboard.min.js +7 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/copy-button.svg +5 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/copybutton.css +94 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/copybutton.js +248 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/copybutton_funcs.js +73 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/badge_only.css +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/fontawesome-webfont.eot +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/fontawesome-webfont.svg +2671 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/fontawesome-webfont.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/lato-bold-italic.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/lato-bold-italic.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/lato-bold.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/lato-bold.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/lato-normal-italic.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/lato-normal.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/fonts/lato-normal.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/css/theme.css +4 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/doctools.js +150 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/documentation_options.js +13 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/english-stemmer.js +1066 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/file.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-bold.eot +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-bold.ttf +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-bold.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-bold.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-bolditalic.eot +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-bolditalic.ttf +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-bolditalic.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-bolditalic.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-italic.eot +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-italic.ttf +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-italic.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-italic.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-regular.eot +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-regular.ttf +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-regular.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/Lato/lato-regular.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/data.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/parameters.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/results_dark.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/results_decontamination.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/results_overview.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/results_reddening.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/results_regions.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/roi.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/run.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/vpd_data.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/vpd_model.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/vpd_results.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/vpd_results_parameters.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/gui/vpd_run.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/logo.svg +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/mcmc_corner_demo.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/mcmc_traces_demo.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/mcmc_vpd_demo.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/membership_overview_demo.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/membership_snapshot_demo.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/ngc6749/corner_cluster.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/ngc6749/decontamination.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/ngc6749/membership_overview.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/ngc6749/phot_vs_pm.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/ngc6749/reddening_map.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/ngc6749/rotated_cmd.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/ngc6749/traces.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/images/ngc6749/vpd.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/jquery.js +2 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/js/badge_only.js +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/js/theme.js +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/js/versions.js +228 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/language_data.js +13 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/logo.svg +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/minus.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/plus.png +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/pygments.css +75 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/searchtools.js +693 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/_static/sphinx_highlight.js +159 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/api/index.html +433 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/api/io.html +608 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/api/mcmc.html +1306 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/api/plotting.html +961 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/api/statistical_membership.html +1973 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/api/utils.html +448 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/genindex.html +1014 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/data.html +444 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/index.html +482 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/parameter_reference.html +664 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/parameters.html +422 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/results.html +486 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/roi.html +422 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/run.html +436 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/vpd_data.html +412 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/vpd_model.html +416 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/vpd_results.html +442 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/gui/vpd_run.html +405 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/index.html +460 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/installation.html +445 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/method.html +530 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/objects.inv +0 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/py-modindex.html +428 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/quickstart.html +464 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/search.html +398 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/searchindex.js +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/tutorials/index.html +413 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/tutorials/mcmc_mixture.html +568 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/_docs_html/tutorials/photometric_membership.html +535 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/docs.py +164 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/__init__.py +31 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/__main__.py +7 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/app.py +53 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/appearance.py +163 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/help.py +137 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/kinematics/data_page.py +255 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/kinematics/model_page.py +321 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/kinematics/panel.py +146 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/kinematics/results_page.py +604 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/kinematics/run_page.py +331 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/main_window.py +405 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/pages/__init__.py +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/pages/data_page.py +400 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/pages/parameters_page.py +341 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/pages/results_page.py +552 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/pages/roi_page.py +451 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/pages/run_page.py +500 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/resources/logo.svg +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/script.py +147 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/session.py +148 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/widgets/__init__.py +1 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/widgets/catalog_panel.py +260 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/widgets/config_form.py +172 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/widgets/dataframe_model.py +62 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/widgets/log_panel.py +120 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/widgets/mpl_canvas.py +131 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/gui/workers.py +64 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/io.py +525 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/mcmc/__init__.py +30 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/mcmc/bivariate_normal.py +151 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/mcmc/config.py +646 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/mcmc/mcmc.py +421 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/mcmc/set_posterior.py +72 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/mcmc/utils.py +202 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/plotting/__init__.py +55 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/plotting/_figure.py +83 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/plotting/cmd.py +198 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/plotting/mcmc.py +545 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/plotting/membership.py +203 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/plotting/spatial.py +214 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/plotting/voronoi.py +209 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/statistical_membership/__init__.py +59 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/statistical_membership/config.py +744 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/statistical_membership/coordinates.py +144 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/statistical_membership/cvt_grid.py +394 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/statistical_membership/dr_correction.py +744 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/statistical_membership/extinction.py +101 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/statistical_membership/membership.py +1001 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/statistical_membership/region_tools.py +125 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/utils/__init__.py +18 -0
- mgcs_pytools-0.4.0b1/src/mgcs_pytools/utils/plotting.py +12 -0
- mgcs_pytools-0.4.0b1/tests/test_config.py +163 -0
- mgcs_pytools-0.4.0b1/tests/test_coordinates.py +116 -0
- mgcs_pytools-0.4.0b1/tests/test_cvt_grid.py +108 -0
- mgcs_pytools-0.4.0b1/tests/test_doc_consistency.py +86 -0
- mgcs_pytools-0.4.0b1/tests/test_docs.py +95 -0
- mgcs_pytools-0.4.0b1/tests/test_dr_correction.py +199 -0
- mgcs_pytools-0.4.0b1/tests/test_extinction.py +21 -0
- mgcs_pytools-0.4.0b1/tests/test_golden_membership.py +95 -0
- mgcs_pytools-0.4.0b1/tests/test_gui.py +248 -0
- mgcs_pytools-0.4.0b1/tests/test_gui_appearance.py +115 -0
- mgcs_pytools-0.4.0b1/tests/test_gui_kinematics.py +200 -0
- mgcs_pytools-0.4.0b1/tests/test_gui_workflow.py +305 -0
- mgcs_pytools-0.4.0b1/tests/test_io.py +145 -0
- mgcs_pytools-0.4.0b1/tests/test_mcmc.py +144 -0
- mgcs_pytools-0.4.0b1/tests/test_membership.py +256 -0
- mgcs_pytools-0.4.0b1/tests/test_mixture_config.py +158 -0
- mgcs_pytools-0.4.0b1/tests/test_plotting.py +278 -0
- mgcs_pytools-0.4.0b1/tests/test_region_tools.py +92 -0
- mgcs_pytools-0.2.0/PKG-INFO +0 -25
- mgcs_pytools-0.2.0/README.md +0 -1
- mgcs_pytools-0.2.0/pyproject.toml +0 -38
- mgcs_pytools-0.2.0/src/MGCS_pytools.egg-info/PKG-INFO +0 -25
- mgcs_pytools-0.2.0/src/MGCS_pytools.egg-info/SOURCES.txt +0 -23
- mgcs_pytools-0.2.0/src/MGCS_pytools.egg-info/requires.txt +0 -12
- mgcs_pytools-0.2.0/src/mgcs_pytools/__init__.py +0 -14
- mgcs_pytools-0.2.0/src/mgcs_pytools/mcmc/__init__.py +0 -0
- mgcs_pytools-0.2.0/src/mgcs_pytools/mcmc/bivariate_normal.py +0 -145
- mgcs_pytools-0.2.0/src/mgcs_pytools/mcmc/legacy/multivariate_2d_posterior.py +0 -102
- mgcs_pytools-0.2.0/src/mgcs_pytools/mcmc/mcmc.py +0 -211
- mgcs_pytools-0.2.0/src/mgcs_pytools/mcmc/set_posterior.py +0 -66
- mgcs_pytools-0.2.0/src/mgcs_pytools/mcmc/utils.py +0 -136
- mgcs_pytools-0.2.0/src/mgcs_pytools/statistical_membership/__init__.py +0 -0
- mgcs_pytools-0.2.0/src/mgcs_pytools/statistical_membership/cvt_grid.py +0 -384
- mgcs_pytools-0.2.0/src/mgcs_pytools/statistical_membership/dr_correction.py +0 -338
- mgcs_pytools-0.2.0/src/mgcs_pytools/statistical_membership/membership.py +0 -509
- mgcs_pytools-0.2.0/src/mgcs_pytools/statistical_membership/region_tools.py +0 -53
- mgcs_pytools-0.2.0/src/mgcs_pytools/utils/__init__.py +0 -0
- mgcs_pytools-0.2.0/src/mgcs_pytools/utils/plotting.py +0 -916
- mgcs_pytools-0.2.0/test/test.py +0 -68
- {mgcs_pytools-0.2.0 → mgcs_pytools-0.4.0b1}/LICENSE +0 -0
- {mgcs_pytools-0.2.0 → mgcs_pytools-0.4.0b1}/setup.cfg +0 -0
- {mgcs_pytools-0.2.0 → mgcs_pytools-0.4.0b1}/src/MGCS_pytools.egg-info/dependency_links.txt +0 -0
- {mgcs_pytools-0.2.0 → mgcs_pytools-0.4.0b1}/src/MGCS_pytools.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: MGCS_pytools
|
|
3
|
+
Version: 0.4.0b1
|
|
4
|
+
Summary: A professional Python library for kinematic MCMC analysis, Voronoi CVT spatial membership, and differential reddening correction for the MGCS HST Treasury program.
|
|
5
|
+
Author-email: Luca Rosignoli <luca.rosignoli@inaf.it>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/LR-inaf/MGCS_pytools
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/LR-inaf/MGCS_pytools/issues
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: numpy>=1.24.0
|
|
13
|
+
Requires-Dist: pandas>=2.0.0
|
|
14
|
+
Requires-Dist: shapely>=2.0.0
|
|
15
|
+
Requires-Dist: scipy>=1.10.0
|
|
16
|
+
Requires-Dist: matplotlib>=3.7.0
|
|
17
|
+
Requires-Dist: astropy>=5.3.0
|
|
18
|
+
Requires-Dist: emcee>=3.1.4
|
|
19
|
+
Requires-Dist: corner>=2.2.2
|
|
20
|
+
Requires-Dist: tqdm>=4.65.0
|
|
21
|
+
Requires-Dist: seaborn>=0.12.0
|
|
22
|
+
Requires-Dist: h5py>=3.8.0
|
|
23
|
+
Requires-Dist: scikit-learn>=1.3.0
|
|
24
|
+
Provides-Extra: gui
|
|
25
|
+
Requires-Dist: PySide6-Essentials>=6.6; extra == "gui"
|
|
26
|
+
Provides-Extra: numba
|
|
27
|
+
Requires-Dist: numba>=0.59.0; extra == "numba"
|
|
28
|
+
Provides-Extra: docs
|
|
29
|
+
Requires-Dist: sphinx>=7.0.0; extra == "docs"
|
|
30
|
+
Requires-Dist: sphinx-rtd-theme>=2.0.0; extra == "docs"
|
|
31
|
+
Requires-Dist: sphinx-copybutton>=0.5.2; extra == "docs"
|
|
32
|
+
Requires-Dist: myst-parser>=2.0.0; extra == "docs"
|
|
33
|
+
Provides-Extra: dev
|
|
34
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
35
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
36
|
+
Requires-Dist: ruff>=0.4.0; extra == "dev"
|
|
37
|
+
Requires-Dist: mypy>=1.10.0; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-qt>=4.4; extra == "dev"
|
|
39
|
+
Requires-Dist: PySide6-Essentials>=6.6; extra == "dev"
|
|
40
|
+
Requires-Dist: docutils>=0.20; extra == "dev"
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
<p align="center"><img src="docs/source/_static/images/logo.svg" alt="MGCS_pytools logo" width="140"></p>
|
|
44
|
+
|
|
45
|
+
# MGCS_pytools
|
|
46
|
+
|
|
47
|
+
**Scientific Python tools for the Missing Globular Cluster Survey ([D. Massari et al. 2025](https://doi.org/10.1051/0004-6361/202554007))**
|
|
48
|
+
|
|
49
|
+
[](https://opensource.org/licenses/MIT)
|
|
50
|
+
[](https://www.python.org/downloads/)
|
|
51
|
+
[](https://github.com/LR-inaf/MGCS_pytools)
|
|
52
|
+
|
|
53
|
+
`MGCS_pytools` is a professional Python library providing vectorized and JIT-accelerated statistical tools for kinematic proper motion analysis, adaptive Voronoi Color-Magnitude Diagram (CMD) decontamination, and iterative differential reddening correction, developed for the *Missing Globular Cluster Survey* (MGCS) HST Treasury program.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Key Features & Architecture
|
|
58
|
+
|
|
59
|
+
The library is structured into three core subpackages plus an offline documentation utility:
|
|
60
|
+
|
|
61
|
+
1. **`mgcs_pytools.mcmc` — Kinematic MCMC Mixture Modeling**
|
|
62
|
+
- Fits multi-component 2D Gaussian Mixture Models (GMM) convolved with per-star observational error ellipses on Vector Point Diagrams (VPD).
|
|
63
|
+
- Powered by [`emcee`](https://emcee.readthedocs.io/) with optional `Numba` JIT acceleration (`bivariate_normal_pdf`, `MCMCEnsembleSampler`, `posterior`, `get_component_membership_from_mcmc_chain`).
|
|
64
|
+
|
|
65
|
+
2. **`mgcs_pytools.statistical_membership` — Photometric CMD Decontamination & Differential Reddening**
|
|
66
|
+
- Decontaminates cluster CMDs from Galactic field star contamination using adaptive **Centroidal Voronoi Tessellations (CVT)** with Lloyd relaxation and cell dilation (`CVTGrid`).
|
|
67
|
+
- Combines statistical subtraction (`compute_statistical_membership`, `get_membership`, `spatial_groupby`) with iterative **differential reddening ($\Delta E(B-V)$)** estimation (`compute_differential_reddening`, `ROISelector`).
|
|
68
|
+
- Outputs the enriched photometric catalog with posterior membership probabilities, differential-reddening-corrected magnitudes, and $\Delta E(B-V)$ map values.
|
|
69
|
+
|
|
70
|
+
3. **`mgcs_pytools.plotting` — Astrophysical Diagnostic Plotting**
|
|
71
|
+
- Publication-ready diagnostic figures: Vector Point Diagrams with marginal component distributions, MCMC walker trace and corner plots, CMD Voronoi tessellations, differential reddening maps, and 4-panel membership overviews.
|
|
72
|
+
|
|
73
|
+
4. **`mgcs_pytools.docs` — Bundled Offline Documentation**
|
|
74
|
+
- Includes pre-built Sphinx ReadTheDocs HTML documentation directly inside the package distribution, accessible offline via CLI (`mgcs-docs`) or Python API (`mgcs_pytools.open_docs()`).
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Installation
|
|
79
|
+
|
|
80
|
+
### Standard Installation (PyPI)
|
|
81
|
+
Requires **Python >= 3.10**:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pip install mgcs-pytools
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Optional Dependencies
|
|
88
|
+
Enable **Numba JIT acceleration** for up to ~40x faster MCMC likelihood evaluation:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pip install "mgcs-pytools[numba]"
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
For building documentation or contributing to development:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
pip install "mgcs-pytools[docs,dev]"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Quickstart
|
|
103
|
+
|
|
104
|
+
### 1. Kinematic MCMC Mixture Modeling
|
|
105
|
+
Fit a 2D Gaussian Mixture Model to proper motion data convolved with measurement errors:
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
import numpy as np
|
|
109
|
+
from mgcs_pytools.mcmc import MCMCEnsembleSampler
|
|
110
|
+
|
|
111
|
+
# Input array: [pm_ra, pm_dec, epm_ra, epm_dec] of shape (N, 4)
|
|
112
|
+
N = 500
|
|
113
|
+
data = np.column_stack(
|
|
114
|
+
[
|
|
115
|
+
np.random.normal(-3.0, 0.8, N),
|
|
116
|
+
np.random.normal(1.5, 0.8, N),
|
|
117
|
+
np.full(N, 0.15),
|
|
118
|
+
np.full(N, 0.15),
|
|
119
|
+
]
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
# Parameter bounds for 1 component (mu1, mu2, sig1, sig2, rho) + weight
|
|
123
|
+
qmin = np.array([-10.0, -10.0, 0.05, 0.05, -0.99, 0.0])
|
|
124
|
+
qmax = np.array([10.0, 10.0, 5.0, 5.0, 0.99, 1.0])
|
|
125
|
+
|
|
126
|
+
sampler = MCMCEnsembleSampler(
|
|
127
|
+
data=data,
|
|
128
|
+
nwalkers=32,
|
|
129
|
+
nsteps=500,
|
|
130
|
+
ncomp=1,
|
|
131
|
+
par_per_comp=5,
|
|
132
|
+
qmin=qmin,
|
|
133
|
+
qmax=qmax,
|
|
134
|
+
pmodel="bivariate_normal",
|
|
135
|
+
)
|
|
136
|
+
sampler.run_emcee()
|
|
137
|
+
|
|
138
|
+
# Retrieve median parameters (50th percentile)
|
|
139
|
+
params = sampler.get_model_parameters(sampler.sampler, which="percentiles", flat=True)
|
|
140
|
+
print("Median parameters:", params[1])
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### 2. Photometric Membership & Differential Reddening
|
|
144
|
+
Run the iterative CMD decontamination and differential reddening pipeline (see [`boilerplate.py`](boilerplate.py) for a complete template):
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
from mgcs_pytools.statistical_membership import compute_statistical_membership
|
|
148
|
+
from mgcs_pytools import plotting as mplot
|
|
149
|
+
|
|
150
|
+
dr_params = {
|
|
151
|
+
"rband1": 1.32, # A(lambda)/A(V) extinction ratio in band 1
|
|
152
|
+
"rband2": 1.00, # A(lambda)/A(V) extinction ratio in band 2
|
|
153
|
+
"TO_mag": 17.5, # Turn-off magnitude
|
|
154
|
+
"TO_color": 0.9, # Turn-off color
|
|
155
|
+
"nref": 25, # Number of nearest reference stars
|
|
156
|
+
"ord_step": 0.4, # Fiducial ridge line bin step
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
df_output = compute_statistical_membership(
|
|
160
|
+
df_cluster=df_cluster,
|
|
161
|
+
df_field=df_field,
|
|
162
|
+
target_mag_col=["mag_b", "mag_v"],
|
|
163
|
+
target_mag_col_error=["mag_b_err", "mag_v_err"],
|
|
164
|
+
field_mag_col=["mag_b", "mag_v"],
|
|
165
|
+
dr_params=dr_params,
|
|
166
|
+
parallel_fov=0.16,
|
|
167
|
+
racol="RA",
|
|
168
|
+
deccol="DEC",
|
|
169
|
+
member_threshold=0.8,
|
|
170
|
+
membership_method="analytical",
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
# Visualize 4-panel membership overview
|
|
174
|
+
fig = mplot.plot_membership_overview(
|
|
175
|
+
btarget=df_output["mag_b_drcorr"],
|
|
176
|
+
vtarget=df_output["mag_v_drcorr"],
|
|
177
|
+
bfield=df_field["mag_b"],
|
|
178
|
+
vfield=df_field["mag_v"],
|
|
179
|
+
membership=df_output["membership"],
|
|
180
|
+
)
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Graphical Interface
|
|
186
|
+
|
|
187
|
+
A graphical interface runs both memberships, in two tabs. Install the optional dependencies and start it with:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
pip install "mgcs-pytools[gui]"
|
|
191
|
+
mgcs-gui
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
The **Photometric membership** tab guides you through five steps:
|
|
195
|
+
|
|
196
|
+
1. **Data**: load the target and parallel-field catalogs (CSV, TSV, ASCII, FITS, HDF5), select their rows and map the columns.
|
|
197
|
+
2. **Parameters**: extinction ratios (with HST filter presets), spatial regions and decontamination settings, each with a tooltip.
|
|
198
|
+
3. **Region of interest**: pick the turn-off on the CMD and draw the reference main-sequence region on the rotated CMD.
|
|
199
|
+
4. **Run**: follow the iterations with live reddening map and membership; the run can be stopped.
|
|
200
|
+
5. **Results**: adjust the membership threshold and export the catalog, the figures and an equivalent Python script.
|
|
201
|
+
|
|
202
|
+
The **Proper motions** tab analyzes the vector point diagram with a mixture of any number of Gaussian components: load the proper motions, define the components (priors suggested from the data), follow the MCMC sampling, then inspect the posterior and export the membership of every star to every component.
|
|
203
|
+
|
|
204
|
+
Sessions can be saved and reopened (`.mgcs.json`). The *GUI user guide* and the *parameter reference* of the documentation (`mgcs-docs`, or **Help** in the GUI) describe every step and parameter; **F1** opens the page of the current step.
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## Offline Documentation
|
|
209
|
+
|
|
210
|
+
Full API reference and step-by-step tutorials (with visual examples) are bundled inside the package and can be opened offline at any time:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# Via CLI script
|
|
214
|
+
mgcs-docs
|
|
215
|
+
|
|
216
|
+
# Print path to index.html without opening a browser
|
|
217
|
+
mgcs-docs --path
|
|
218
|
+
|
|
219
|
+
# Rebuild HTML documentation from source (requires [docs] extras)
|
|
220
|
+
mgcs-docs --build
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Or directly from Python:
|
|
224
|
+
|
|
225
|
+
```python
|
|
226
|
+
import mgcs_pytools
|
|
227
|
+
|
|
228
|
+
mgcs_pytools.open_docs()
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Development & Verification
|
|
234
|
+
|
|
235
|
+
This repository uses [`uv`](https://docs.astral.sh/uv/) for dependency management and quality gates:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
# 1. Code formatting check
|
|
239
|
+
uv run ruff format --check .
|
|
240
|
+
|
|
241
|
+
# 2. Linter
|
|
242
|
+
uv run ruff check .
|
|
243
|
+
|
|
244
|
+
# 3. Static type checking
|
|
245
|
+
uv run mypy .
|
|
246
|
+
|
|
247
|
+
# 4. Unit test suite
|
|
248
|
+
uv run pytest -v
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## Contributing & Issue Reporting
|
|
254
|
+
|
|
255
|
+
Contributions are very welcome! To contribute:
|
|
256
|
+
1. Clone this repository and create a feature branch.
|
|
257
|
+
2. Implement your changes and ensure all verification checks (`ruff`, `mypy`, `pytest`) pass.
|
|
258
|
+
3. Open a Pull Request.
|
|
259
|
+
|
|
260
|
+
If you encounter any bugs or have feature requests, please open an issue on the [GitHub Issue Tracker](https://github.com/LR-inaf/MGCS_pytools/issues).
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## Contact & Citation
|
|
265
|
+
|
|
266
|
+
For questions or inquiries, please contact:
|
|
267
|
+
- **Luca Rosignoli** — [luca.rosignoli@inaf.it](mailto:luca.rosignoli@inaf.it)
|
|
268
|
+
|
|
269
|
+
If you use `MGCS_pytools` in your scientific publication, please cite the Missing Globular Cluster Survey paper:
|
|
270
|
+
> D. Massari et al. (2025), *A&A*, [doi:10.1051/0004-6361/202554007](https://doi.org/10.1051/0004-6361/202554007)
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
<p align="center"><img src="docs/source/_static/images/logo.svg" alt="MGCS_pytools logo" width="140"></p>
|
|
2
|
+
|
|
3
|
+
# MGCS_pytools
|
|
4
|
+
|
|
5
|
+
**Scientific Python tools for the Missing Globular Cluster Survey ([D. Massari et al. 2025](https://doi.org/10.1051/0004-6361/202554007))**
|
|
6
|
+
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://www.python.org/downloads/)
|
|
9
|
+
[](https://github.com/LR-inaf/MGCS_pytools)
|
|
10
|
+
|
|
11
|
+
`MGCS_pytools` is a professional Python library providing vectorized and JIT-accelerated statistical tools for kinematic proper motion analysis, adaptive Voronoi Color-Magnitude Diagram (CMD) decontamination, and iterative differential reddening correction, developed for the *Missing Globular Cluster Survey* (MGCS) HST Treasury program.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Key Features & Architecture
|
|
16
|
+
|
|
17
|
+
The library is structured into three core subpackages plus an offline documentation utility:
|
|
18
|
+
|
|
19
|
+
1. **`mgcs_pytools.mcmc` — Kinematic MCMC Mixture Modeling**
|
|
20
|
+
- Fits multi-component 2D Gaussian Mixture Models (GMM) convolved with per-star observational error ellipses on Vector Point Diagrams (VPD).
|
|
21
|
+
- Powered by [`emcee`](https://emcee.readthedocs.io/) with optional `Numba` JIT acceleration (`bivariate_normal_pdf`, `MCMCEnsembleSampler`, `posterior`, `get_component_membership_from_mcmc_chain`).
|
|
22
|
+
|
|
23
|
+
2. **`mgcs_pytools.statistical_membership` — Photometric CMD Decontamination & Differential Reddening**
|
|
24
|
+
- Decontaminates cluster CMDs from Galactic field star contamination using adaptive **Centroidal Voronoi Tessellations (CVT)** with Lloyd relaxation and cell dilation (`CVTGrid`).
|
|
25
|
+
- Combines statistical subtraction (`compute_statistical_membership`, `get_membership`, `spatial_groupby`) with iterative **differential reddening ($\Delta E(B-V)$)** estimation (`compute_differential_reddening`, `ROISelector`).
|
|
26
|
+
- Outputs the enriched photometric catalog with posterior membership probabilities, differential-reddening-corrected magnitudes, and $\Delta E(B-V)$ map values.
|
|
27
|
+
|
|
28
|
+
3. **`mgcs_pytools.plotting` — Astrophysical Diagnostic Plotting**
|
|
29
|
+
- Publication-ready diagnostic figures: Vector Point Diagrams with marginal component distributions, MCMC walker trace and corner plots, CMD Voronoi tessellations, differential reddening maps, and 4-panel membership overviews.
|
|
30
|
+
|
|
31
|
+
4. **`mgcs_pytools.docs` — Bundled Offline Documentation**
|
|
32
|
+
- Includes pre-built Sphinx ReadTheDocs HTML documentation directly inside the package distribution, accessible offline via CLI (`mgcs-docs`) or Python API (`mgcs_pytools.open_docs()`).
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
### Standard Installation (PyPI)
|
|
39
|
+
Requires **Python >= 3.10**:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install mgcs-pytools
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Optional Dependencies
|
|
46
|
+
Enable **Numba JIT acceleration** for up to ~40x faster MCMC likelihood evaluation:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install "mgcs-pytools[numba]"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
For building documentation or contributing to development:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
pip install "mgcs-pytools[docs,dev]"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Quickstart
|
|
61
|
+
|
|
62
|
+
### 1. Kinematic MCMC Mixture Modeling
|
|
63
|
+
Fit a 2D Gaussian Mixture Model to proper motion data convolved with measurement errors:
|
|
64
|
+
|
|
65
|
+
```python
|
|
66
|
+
import numpy as np
|
|
67
|
+
from mgcs_pytools.mcmc import MCMCEnsembleSampler
|
|
68
|
+
|
|
69
|
+
# Input array: [pm_ra, pm_dec, epm_ra, epm_dec] of shape (N, 4)
|
|
70
|
+
N = 500
|
|
71
|
+
data = np.column_stack(
|
|
72
|
+
[
|
|
73
|
+
np.random.normal(-3.0, 0.8, N),
|
|
74
|
+
np.random.normal(1.5, 0.8, N),
|
|
75
|
+
np.full(N, 0.15),
|
|
76
|
+
np.full(N, 0.15),
|
|
77
|
+
]
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
# Parameter bounds for 1 component (mu1, mu2, sig1, sig2, rho) + weight
|
|
81
|
+
qmin = np.array([-10.0, -10.0, 0.05, 0.05, -0.99, 0.0])
|
|
82
|
+
qmax = np.array([10.0, 10.0, 5.0, 5.0, 0.99, 1.0])
|
|
83
|
+
|
|
84
|
+
sampler = MCMCEnsembleSampler(
|
|
85
|
+
data=data,
|
|
86
|
+
nwalkers=32,
|
|
87
|
+
nsteps=500,
|
|
88
|
+
ncomp=1,
|
|
89
|
+
par_per_comp=5,
|
|
90
|
+
qmin=qmin,
|
|
91
|
+
qmax=qmax,
|
|
92
|
+
pmodel="bivariate_normal",
|
|
93
|
+
)
|
|
94
|
+
sampler.run_emcee()
|
|
95
|
+
|
|
96
|
+
# Retrieve median parameters (50th percentile)
|
|
97
|
+
params = sampler.get_model_parameters(sampler.sampler, which="percentiles", flat=True)
|
|
98
|
+
print("Median parameters:", params[1])
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 2. Photometric Membership & Differential Reddening
|
|
102
|
+
Run the iterative CMD decontamination and differential reddening pipeline (see [`boilerplate.py`](boilerplate.py) for a complete template):
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
from mgcs_pytools.statistical_membership import compute_statistical_membership
|
|
106
|
+
from mgcs_pytools import plotting as mplot
|
|
107
|
+
|
|
108
|
+
dr_params = {
|
|
109
|
+
"rband1": 1.32, # A(lambda)/A(V) extinction ratio in band 1
|
|
110
|
+
"rband2": 1.00, # A(lambda)/A(V) extinction ratio in band 2
|
|
111
|
+
"TO_mag": 17.5, # Turn-off magnitude
|
|
112
|
+
"TO_color": 0.9, # Turn-off color
|
|
113
|
+
"nref": 25, # Number of nearest reference stars
|
|
114
|
+
"ord_step": 0.4, # Fiducial ridge line bin step
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
df_output = compute_statistical_membership(
|
|
118
|
+
df_cluster=df_cluster,
|
|
119
|
+
df_field=df_field,
|
|
120
|
+
target_mag_col=["mag_b", "mag_v"],
|
|
121
|
+
target_mag_col_error=["mag_b_err", "mag_v_err"],
|
|
122
|
+
field_mag_col=["mag_b", "mag_v"],
|
|
123
|
+
dr_params=dr_params,
|
|
124
|
+
parallel_fov=0.16,
|
|
125
|
+
racol="RA",
|
|
126
|
+
deccol="DEC",
|
|
127
|
+
member_threshold=0.8,
|
|
128
|
+
membership_method="analytical",
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
# Visualize 4-panel membership overview
|
|
132
|
+
fig = mplot.plot_membership_overview(
|
|
133
|
+
btarget=df_output["mag_b_drcorr"],
|
|
134
|
+
vtarget=df_output["mag_v_drcorr"],
|
|
135
|
+
bfield=df_field["mag_b"],
|
|
136
|
+
vfield=df_field["mag_v"],
|
|
137
|
+
membership=df_output["membership"],
|
|
138
|
+
)
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Graphical Interface
|
|
144
|
+
|
|
145
|
+
A graphical interface runs both memberships, in two tabs. Install the optional dependencies and start it with:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
pip install "mgcs-pytools[gui]"
|
|
149
|
+
mgcs-gui
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
The **Photometric membership** tab guides you through five steps:
|
|
153
|
+
|
|
154
|
+
1. **Data**: load the target and parallel-field catalogs (CSV, TSV, ASCII, FITS, HDF5), select their rows and map the columns.
|
|
155
|
+
2. **Parameters**: extinction ratios (with HST filter presets), spatial regions and decontamination settings, each with a tooltip.
|
|
156
|
+
3. **Region of interest**: pick the turn-off on the CMD and draw the reference main-sequence region on the rotated CMD.
|
|
157
|
+
4. **Run**: follow the iterations with live reddening map and membership; the run can be stopped.
|
|
158
|
+
5. **Results**: adjust the membership threshold and export the catalog, the figures and an equivalent Python script.
|
|
159
|
+
|
|
160
|
+
The **Proper motions** tab analyzes the vector point diagram with a mixture of any number of Gaussian components: load the proper motions, define the components (priors suggested from the data), follow the MCMC sampling, then inspect the posterior and export the membership of every star to every component.
|
|
161
|
+
|
|
162
|
+
Sessions can be saved and reopened (`.mgcs.json`). The *GUI user guide* and the *parameter reference* of the documentation (`mgcs-docs`, or **Help** in the GUI) describe every step and parameter; **F1** opens the page of the current step.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Offline Documentation
|
|
167
|
+
|
|
168
|
+
Full API reference and step-by-step tutorials (with visual examples) are bundled inside the package and can be opened offline at any time:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
# Via CLI script
|
|
172
|
+
mgcs-docs
|
|
173
|
+
|
|
174
|
+
# Print path to index.html without opening a browser
|
|
175
|
+
mgcs-docs --path
|
|
176
|
+
|
|
177
|
+
# Rebuild HTML documentation from source (requires [docs] extras)
|
|
178
|
+
mgcs-docs --build
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Or directly from Python:
|
|
182
|
+
|
|
183
|
+
```python
|
|
184
|
+
import mgcs_pytools
|
|
185
|
+
|
|
186
|
+
mgcs_pytools.open_docs()
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Development & Verification
|
|
192
|
+
|
|
193
|
+
This repository uses [`uv`](https://docs.astral.sh/uv/) for dependency management and quality gates:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# 1. Code formatting check
|
|
197
|
+
uv run ruff format --check .
|
|
198
|
+
|
|
199
|
+
# 2. Linter
|
|
200
|
+
uv run ruff check .
|
|
201
|
+
|
|
202
|
+
# 3. Static type checking
|
|
203
|
+
uv run mypy .
|
|
204
|
+
|
|
205
|
+
# 4. Unit test suite
|
|
206
|
+
uv run pytest -v
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Contributing & Issue Reporting
|
|
212
|
+
|
|
213
|
+
Contributions are very welcome! To contribute:
|
|
214
|
+
1. Clone this repository and create a feature branch.
|
|
215
|
+
2. Implement your changes and ensure all verification checks (`ruff`, `mypy`, `pytest`) pass.
|
|
216
|
+
3. Open a Pull Request.
|
|
217
|
+
|
|
218
|
+
If you encounter any bugs or have feature requests, please open an issue on the [GitHub Issue Tracker](https://github.com/LR-inaf/MGCS_pytools/issues).
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Contact & Citation
|
|
223
|
+
|
|
224
|
+
For questions or inquiries, please contact:
|
|
225
|
+
- **Luca Rosignoli** — [luca.rosignoli@inaf.it](mailto:luca.rosignoli@inaf.it)
|
|
226
|
+
|
|
227
|
+
If you use `MGCS_pytools` in your scientific publication, please cite the Missing Globular Cluster Survey paper:
|
|
228
|
+
> D. Massari et al. (2025), *A&A*, [doi:10.1051/0004-6361/202554007](https://doi.org/10.1051/0004-6361/202554007)
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "MGCS_pytools"
|
|
7
|
+
version = "0.4.0b1"
|
|
8
|
+
description = "A professional Python library for kinematic MCMC analysis, Voronoi CVT spatial membership, and differential reddening correction for the MGCS HST Treasury program."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [
|
|
14
|
+
{name = "Luca Rosignoli", email = "luca.rosignoli@inaf.it"}
|
|
15
|
+
]
|
|
16
|
+
dependencies = [
|
|
17
|
+
"numpy>=1.24.0",
|
|
18
|
+
"pandas>=2.0.0",
|
|
19
|
+
"shapely>=2.0.0",
|
|
20
|
+
"scipy>=1.10.0",
|
|
21
|
+
"matplotlib>=3.7.0",
|
|
22
|
+
"astropy>=5.3.0",
|
|
23
|
+
"emcee>=3.1.4",
|
|
24
|
+
"corner>=2.2.2",
|
|
25
|
+
"tqdm>=4.65.0",
|
|
26
|
+
"seaborn>=0.12.0",
|
|
27
|
+
"h5py>=3.8.0",
|
|
28
|
+
"scikit-learn>=1.3.0",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
gui = [
|
|
33
|
+
"PySide6-Essentials>=6.6",
|
|
34
|
+
]
|
|
35
|
+
numba = [
|
|
36
|
+
"numba>=0.59.0",
|
|
37
|
+
]
|
|
38
|
+
docs = [
|
|
39
|
+
"sphinx>=7.0.0",
|
|
40
|
+
"sphinx-rtd-theme>=2.0.0",
|
|
41
|
+
"sphinx-copybutton>=0.5.2",
|
|
42
|
+
"myst-parser>=2.0.0",
|
|
43
|
+
]
|
|
44
|
+
dev = [
|
|
45
|
+
"pytest>=8.0.0",
|
|
46
|
+
"pytest-cov>=4.1.0",
|
|
47
|
+
"ruff>=0.4.0",
|
|
48
|
+
"mypy>=1.10.0",
|
|
49
|
+
"pytest-qt>=4.4",
|
|
50
|
+
"PySide6-Essentials>=6.6",
|
|
51
|
+
"docutils>=0.20",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[project.scripts]
|
|
55
|
+
mgcs-docs = "mgcs_pytools.docs:open_docs_cli"
|
|
56
|
+
mgcs-gui = "mgcs_pytools.gui.app:main"
|
|
57
|
+
|
|
58
|
+
[tool.setuptools]
|
|
59
|
+
package-dir = {"" = "src"}
|
|
60
|
+
|
|
61
|
+
[tool.setuptools.package-data]
|
|
62
|
+
"mgcs_pytools" = ["_docs_html/**/*", "gui/resources/*.svg"]
|
|
63
|
+
|
|
64
|
+
[tool.setuptools.packages.find]
|
|
65
|
+
where = ["src"]
|
|
66
|
+
|
|
67
|
+
[dependency-groups]
|
|
68
|
+
dev = [
|
|
69
|
+
"pytest>=9.1.1",
|
|
70
|
+
"pytest-qt>=4.4",
|
|
71
|
+
"PySide6-Essentials>=6.6",
|
|
72
|
+
"docutils>=0.20",
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
[project.urls]
|
|
76
|
+
"Homepage" = "https://github.com/LR-inaf/MGCS_pytools"
|
|
77
|
+
"Bug Tracker" = "https://github.com/LR-inaf/MGCS_pytools/issues"
|
|
78
|
+
|
|
79
|
+
[tool.ruff]
|
|
80
|
+
line-length = 100
|
|
81
|
+
target-version = "py310"
|
|
82
|
+
|
|
83
|
+
[tool.ruff.lint]
|
|
84
|
+
select = ["E", "F", "W", "I"]
|
|
85
|
+
ignore = ["E501"]
|
|
86
|
+
|
|
87
|
+
[tool.mypy]
|
|
88
|
+
python_version = "3.10"
|
|
89
|
+
warn_return_any = false
|
|
90
|
+
warn_unused_configs = true
|
|
91
|
+
ignore_missing_imports = true
|
|
92
|
+
|
|
93
|
+
[tool.pytest.ini_options]
|
|
94
|
+
minversion = "8.0"
|
|
95
|
+
addopts = "-ra -q"
|
|
96
|
+
testpaths = [
|
|
97
|
+
"tests",
|
|
98
|
+
]
|