threeML 2.4.2.dev1__tar.gz → 2.4.2.dev2__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.
Files changed (281) hide show
  1. {threeML-2.4.2.dev1/threeML.egg-info → threeml-2.4.2.dev2}/PKG-INFO +4 -4
  2. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/setup.cfg +3 -3
  3. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/_version.py +3 -3
  4. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/analysis_results.py +2 -2
  5. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/classicMLE/joint_likelihood.py +2 -3
  6. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/calculate_flux.py +43 -26
  7. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/cmap_cycle.py +2 -1
  8. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/post_process_data_plots.py +2 -2
  9. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/tutorial_material.py +2 -1
  10. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_bayesian.py +1 -1
  11. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/OGIP/response.py +2 -2
  12. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_builders/fermi/lat_transient_builder.py +7 -3
  13. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/progress_bar.py +2 -3
  14. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2/threeML.egg-info}/PKG-INFO +4 -4
  15. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML.egg-info/requires.txt +3 -3
  16. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/LICENSE +0 -0
  17. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/MANIFEST.in +0 -0
  18. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/README.md +0 -0
  19. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/setup.py +0 -0
  20. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/__init__.py +4 -4
  21. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/__init__.py +0 -0
  22. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/autoemcee_sampler.py +0 -0
  23. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/bayesian_analysis.py +0 -0
  24. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/dynesty_sampler.py +0 -0
  25. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/emcee_sampler.py +0 -0
  26. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/multinest_sampler.py +0 -0
  27. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/nautilus_sampler.py +0 -0
  28. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/sampler_base.py +0 -0
  29. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/tutorial_material.py +0 -0
  30. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/ultranest_sampler.py +0 -0
  31. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/bayesian/zeus_sampler.py +0 -0
  32. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/catalogs/Fermi.py +0 -0
  33. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/catalogs/FermiGBM.py +0 -0
  34. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/catalogs/FermiLAT.py +0 -0
  35. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/catalogs/FermiLLE.py +0 -0
  36. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/catalogs/Swift.py +0 -0
  37. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/catalogs/VirtualObservatoryCatalog.py +0 -0
  38. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/catalogs/__init__.py +0 -0
  39. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/catalogs/catalog_utils.py +0 -0
  40. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/classicMLE/__init__.py +0 -0
  41. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/classicMLE/goodness_of_fit.py +0 -0
  42. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/classicMLE/joint_likelihood_set.py +0 -0
  43. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/classicMLE/likelihood_ratio_test.py +0 -0
  44. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/__init__.py +0 -0
  45. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/catalog_structure.py +0 -0
  46. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/config.py +0 -0
  47. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/config_structure.py +0 -0
  48. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/config_utils.py +0 -0
  49. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/fitting_structure.py +0 -0
  50. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/plotting_structure.py +0 -0
  51. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/plugin_structure.py +0 -0
  52. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/config/point_source_structure.py +0 -0
  53. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bat/gbm_bat_joint_BAT.pha +0 -0
  54. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bat/gbm_bat_joint_BAT.rsp +0 -0
  55. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_b1_bkgspectra.bak +0 -0
  56. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_b1_srcspectra.pha +0 -0
  57. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_b1_weightedrsp.rsp +0 -0
  58. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_n6_bkgspectra.bak +0 -0
  59. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_n6_srcspectra.pha +0 -0
  60. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_n6_weightedrsp.rsp +0 -0
  61. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_n9_bkgspectra.bak +0 -0
  62. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_n9_srcspectra.pha +0 -0
  63. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/bn090217206/bn090217206_n9_weightedrsp.rsp +0 -0
  64. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/example_integral.pha +0 -0
  65. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/example_integral.rsp +0 -0
  66. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/example_integral_spi.pha +0 -0
  67. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/example_integral_spi.rsp +0 -0
  68. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/bn080916009/glg_cspec_b0_bn080916009_v00.rsp2 +0 -0
  69. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/bn080916009/glg_cspec_n3_bn080916009_v00.rsp2 +0 -0
  70. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/bn080916009/glg_cspec_n3_bn080916009_v01.pha +0 -0
  71. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/bn080916009/glg_tte_b0_bn080916009_v01.fit.gz +0 -0
  72. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/bn080916009/glg_tte_n3_bn080916009_v01.fit.gz +0 -0
  73. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/gbm_bat_joint_BGO_00.bak +0 -0
  74. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/gbm_bat_joint_BGO_00.pha +0 -0
  75. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/gbm_bat_joint_BGO_00.rsp +0 -0
  76. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/gbm_bat_joint_NAI_06.bak +0 -0
  77. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/gbm_bat_joint_NAI_06.pha +0 -0
  78. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gbm/gbm_bat_joint_NAI_06.rsp +0 -0
  79. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/glg_cspec_n3_bn080916009_v00.rsp2 +0 -0
  80. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/glg_cspec_n3_bn080916009_v01.pha +0 -0
  81. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/glg_cspec_n3_bn080916009_v07.rsp +0 -0
  82. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/glg_tte_n3_bn080916009_v01.fit.gz +0 -0
  83. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gll_cspec_bn080916009_v10.rsp +0 -0
  84. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gll_lle_bn080916009_v10.fit +0 -0
  85. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/gll_pt_bn080916009_v10.fit +0 -0
  86. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/lat/bn090217206_LAT_xmlmodel.xml +0 -0
  87. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/lat/gll_cspec_bn080916009_v10.pha +0 -0
  88. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/lat/gll_cspec_bn080916009_v10.rsp +0 -0
  89. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/lat/gll_ft1_tr_bn090217206_v00_filt.fit +0 -0
  90. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/lat/gll_ft1_tr_bn090217206_v00_filt_expomap.fit +0 -0
  91. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/lat/gll_ft1_tr_bn090217206_v00_filt_ltcube.fit.gz +0 -0
  92. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/lat/gll_lle_bn080916009_v10.fit +0 -0
  93. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/lat/gll_pt_bn080916009_v10.fit +0 -0
  94. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/multi_analysis/awt.arf +0 -0
  95. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/multi_analysis/awt.pi +0 -0
  96. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/multi_analysis/awt.rmf +0 -0
  97. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/multi_analysis/awt_fit.fit +0 -0
  98. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/multi_analysis/awtback.pi +0 -0
  99. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/multi_analysis/awtsource.pi +0 -0
  100. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/ogip_powerlaw.bak +0 -0
  101. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/ogip_powerlaw.pha +0 -0
  102. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/ogip_powerlaw.rsp +0 -0
  103. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/test.pha +0 -0
  104. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/test_bak.pha +0 -0
  105. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/xrt/interval0wtback.pi +0 -0
  106. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/xrt/interval0wtsource.pi +0 -0
  107. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/xrt/xrt.arf +0 -0
  108. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/xrt/xrt.rmf +0 -0
  109. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/xrt/xrt_bkg.pha +0 -0
  110. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/xrt/xrt_src.pha +0 -0
  111. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/datasets/xy_powerlaw.txt +0 -0
  112. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/default_style.yml +0 -0
  113. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/doc_config.yml +0 -0
  114. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/fermipy_basic_config.yml +0 -0
  115. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/ogip_test_gbm_b0.rsp2 +0 -0
  116. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/ogip_test_gbm_n6.rsp +0 -0
  117. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/ogip_test_xmm_pn.arf +0 -0
  118. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/ogip_test_xmm_pn.rmf +0 -0
  119. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/optical_filters/filter_library.h5 +0 -0
  120. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/threeml.mplstyle +0 -0
  121. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/threeml_docs.mplstyle +0 -0
  122. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/xmm/pnS004-A2443_reg2.arf +0 -0
  123. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/xmm/pnS004-A2443_reg2.fak +0 -0
  124. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data/xmm/pnS004-A2443_reg2.rmf +0 -0
  125. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/data_list.py +0 -0
  126. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/exceptions/__init__.py +0 -0
  127. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/exceptions/custom_exceptions.py +0 -0
  128. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/__init__.py +0 -0
  129. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/cern_root_utils/__init__.py +0 -0
  130. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/cern_root_utils/io_utils.py +0 -0
  131. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/cern_root_utils/tobject_to_numpy.py +0 -0
  132. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/configuration.py +0 -0
  133. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/detect_notebook.py +0 -0
  134. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/dict_with_pretty_print.py +0 -0
  135. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/download_from_ftp.py +0 -0
  136. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/download_from_http.py +0 -0
  137. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/file_utils.py +0 -0
  138. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/fits_file.py +0 -0
  139. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/get_heasarc_table_as_pandas.py +0 -0
  140. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/hdf5_utils.py +0 -0
  141. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/logging.py +0 -0
  142. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/network.py +0 -0
  143. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/package_data.py +0 -0
  144. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/__init__.py +0 -0
  145. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/data_residual_plot.py +0 -0
  146. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/get_style.py +0 -0
  147. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/light_curve_plots.py +0 -0
  148. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/model_plot.py +0 -0
  149. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/model_plot_2D.py +0 -0
  150. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/model_plot_tags.py +0 -0
  151. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/plotting/step_plot.py +0 -0
  152. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/results_table.py +0 -0
  153. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/rich_display.py +0 -0
  154. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/serialization.py +0 -0
  155. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/suppress_stdout.py +0 -0
  156. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/table.py +0 -0
  157. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/io/uncertainty_formatter.py +0 -0
  158. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/ROOT_minimizer.py +0 -0
  159. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/__init__.py +0 -0
  160. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/grid_minimizer.py +0 -0
  161. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/minimization.py +0 -0
  162. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/minuit_minimizer.py +0 -0
  163. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/multinest_minimizer.py +0 -0
  164. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/pagmo_minimizer.py +0 -0
  165. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/minimizer/scipy_minimizer.py +0 -0
  166. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/parallel/__init__.py +0 -0
  167. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/parallel/parallel_client.py +0 -0
  168. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugin_prototype.py +0 -0
  169. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/BinnedProfileLike.py +0 -0
  170. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/DispersionSpectrumLike.py +0 -0
  171. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/FermiLATLike.py +0 -0
  172. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/FermipyLike.py +0 -0
  173. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/HAWCLike.py +0 -0
  174. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/OGIPLike.py +0 -0
  175. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/PhotometryLike.py +0 -0
  176. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/SpectrumLike.py +0 -0
  177. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/SwiftXRTLike.py +0 -0
  178. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/UnbinnedPoissonLike.py +0 -0
  179. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/UnresolvedExtendedXYLike.py +0 -0
  180. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/XYLike.py +0 -0
  181. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/__init__.py +0 -0
  182. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/experimental/CastroLike.py +0 -0
  183. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/experimental/SherpaLike.py +0 -0
  184. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/experimental/VERITASLike.py +0 -0
  185. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/plugins/experimental/__init__.py +0 -0
  186. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/random_variates.py +0 -0
  187. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/__init__.py +0 -0
  188. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/conftest.py +0 -0
  189. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/generate_pha.py +0 -0
  190. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_AAA_against_xspec.py +0 -0
  191. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_FermiLATLike.py +0 -0
  192. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_FermipyLike.py +0 -0
  193. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_UnresolvedExtendedXYLike.py +0 -0
  194. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_XYLike.py +0 -0
  195. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_analysis_results.py +0 -0
  196. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_basic.py +0 -0
  197. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_catalogs.py +0 -0
  198. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_configuration.py +0 -0
  199. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_download_GBM_data.py +0 -0
  200. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_download_LAT_data.py +0 -0
  201. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_event_list.py +0 -0
  202. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_file_utils.py +0 -0
  203. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_fits_file.py +0 -0
  204. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_fitted_point_sources.py +0 -0
  205. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_generic.py +0 -0
  206. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_get_package_data.py +0 -0
  207. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_goodness_of_fit.py +0 -0
  208. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_hawc.py +0 -0
  209. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_histogram.py +0 -0
  210. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_joint_likelihood_set.py +0 -0
  211. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_minimizers.py +0 -0
  212. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_model_from_catalog.py +0 -0
  213. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_ogip.py +0 -0
  214. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_photometry_utils.py +0 -0
  215. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_plotting.py +0 -0
  216. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_plugin_loading.py +0 -0
  217. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_power_of_two_utils.py +0 -0
  218. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_response.py +0 -0
  219. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_spectrum_class.py +0 -0
  220. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_spectrumlike.py +0 -0
  221. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_time_energy_fit.py +0 -0
  222. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_time_interval.py +0 -0
  223. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_time_series.py +0 -0
  224. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_unbinned_poisson_like.py +0 -0
  225. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/test/test_verbosity.py +0 -0
  226. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/OGIP/__init__.py +0 -0
  227. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/OGIP/pha.py +0 -0
  228. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/__init__.py +0 -0
  229. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/bayesian_blocks.py +0 -0
  230. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/binner.py +0 -0
  231. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/cartesian.py +0 -0
  232. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_builders/__init__.py +0 -0
  233. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_builders/fermi/__init__.py +0 -0
  234. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_builders/fermi/gbm_data.py +0 -0
  235. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_builders/fermi/lat_data.py +0 -0
  236. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_builders/fermi/test.py +0 -0
  237. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_builders/time_series_builder.py +0 -0
  238. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_download/Fermi_GBM/__init__.py +0 -0
  239. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_download/Fermi_GBM/download_GBM_data.py +0 -0
  240. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_download/Fermi_LAT/__init__.py +0 -0
  241. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_download/Fermi_LAT/download_LAT_data.py +0 -0
  242. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_download/Fermi_LAT/download_LLE_data.py +0 -0
  243. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/data_download/__init__.py +0 -0
  244. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/differentiation.py +0 -0
  245. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/fermi_relative_mission_time.py +0 -0
  246. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/fitted_objects/__init__.py +0 -0
  247. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/fitted_objects/fitted_point_sources.py +0 -0
  248. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/fitted_objects/fitted_source_handler.py +0 -0
  249. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/histogram.py +0 -0
  250. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/interval.py +0 -0
  251. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/numba_utils.py +0 -0
  252. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/photometry/__init__.py +0 -0
  253. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/photometry/filter_library.py +0 -0
  254. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/photometry/filter_set.py +0 -0
  255. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/photometry/photometric_observation.py +0 -0
  256. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/polarization/__init__.py +0 -0
  257. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/polarization/binned_polarization.py +0 -0
  258. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/power_of_two_utils.py +0 -0
  259. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/spectrum/__init__.py +0 -0
  260. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/spectrum/binned_spectrum.py +0 -0
  261. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/spectrum/binned_spectrum_set.py +0 -0
  262. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/spectrum/pha_spectrum.py +0 -0
  263. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/spectrum/share_spectrum.py +0 -0
  264. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/spectrum/spectrum_likelihood.py +0 -0
  265. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/statistics/__init__.py +0 -0
  266. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/statistics/gammaln.py +0 -0
  267. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/statistics/likelihood_functions.py +0 -0
  268. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/statistics/stats_tools.py +0 -0
  269. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/step_parameter_generator.py +0 -0
  270. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/string_utils.py +0 -0
  271. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/time_interval.py +0 -0
  272. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/time_series/__init__.py +0 -0
  273. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/time_series/binned_spectrum_series.py +0 -0
  274. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/time_series/event_list.py +0 -0
  275. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/time_series/polynomial.py +0 -0
  276. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/time_series/time_series.py +0 -0
  277. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML/utils/unique_deterministic_tag.py +0 -0
  278. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML.egg-info/SOURCES.txt +0 -0
  279. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML.egg-info/dependency_links.txt +0 -0
  280. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/threeML.egg-info/top_level.txt +0 -0
  281. {threeML-2.4.2.dev1 → threeml-2.4.2.dev2}/versioneer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: threeML
3
- Version: 2.4.2.dev1
3
+ Version: 2.4.2.dev2
4
4
  Summary: The Multi-Mission Maximum Likelihood framework
5
5
  Home-page: https://github.com/threeml/threeML
6
6
  Author: Giacomo Vianello
@@ -21,8 +21,8 @@ License-File: LICENSE
21
21
  Requires-Dist: numpy>=1.16
22
22
  Requires-Dist: scipy>=1.4
23
23
  Requires-Dist: emcee>=3
24
- Requires-Dist: astropy>=1.3.3
25
- Requires-Dist: matplotlib
24
+ Requires-Dist: astropy
25
+ Requires-Dist: matplotlib<3.9
26
26
  Requires-Dist: uncertainties
27
27
  Requires-Dist: pyyaml>=5.1
28
28
  Requires-Dist: dill
@@ -38,7 +38,7 @@ Requires-Dist: ipyparallel
38
38
  Requires-Dist: joblib
39
39
  Requires-Dist: numexpr
40
40
  Requires-Dist: dynesty
41
- Requires-Dist: numba<0.59
41
+ Requires-Dist: numba
42
42
  Requires-Dist: numdifftools
43
43
  Requires-Dist: tqdm>=4.56.0
44
44
  Requires-Dist: colorama
@@ -28,8 +28,8 @@ install_requires =
28
28
  numpy>=1.16
29
29
  scipy>=1.4
30
30
  emcee>=3
31
- astropy>=1.3.3
32
- matplotlib
31
+ astropy
32
+ matplotlib<3.9
33
33
  uncertainties
34
34
  pyyaml>=5.1
35
35
  dill
@@ -45,7 +45,7 @@ install_requires =
45
45
  joblib
46
46
  numexpr
47
47
  dynesty
48
- numba<0.59
48
+ numba
49
49
  numdifftools
50
50
  tqdm>=4.56.0
51
51
  colorama
@@ -9,11 +9,11 @@ import json
9
9
 
10
10
  version_json = '''
11
11
  {
12
- "date": "2024-02-07T11:59:32-0800",
12
+ "date": "2024-05-16T11:29:54-0700",
13
13
  "dirty": false,
14
14
  "error": null,
15
- "full-revisionid": "0dffe924d2249234063051268659a0705e13ef75",
16
- "version": "2.4.2.dev1"
15
+ "full-revisionid": "5d82ece955c4d85922bd89a38525920eceb160a5",
16
+ "version": "2.4.2.dev2"
17
17
  }
18
18
  ''' # END VERSION_JSON
19
19
 
@@ -14,7 +14,7 @@ import astromodels
14
14
  import astropy.units as u
15
15
  import h5py
16
16
  import matplotlib.pyplot as plt
17
- import matplotlib.cm as cm
17
+ from matplotlib import colormaps
18
18
  import numpy as np
19
19
  import pandas as pd
20
20
  import yaml
@@ -1125,7 +1125,7 @@ class BayesianResults(_AnalysisResults):
1125
1125
 
1126
1126
  corner_style = threeML_config.bayesian.corner_style
1127
1127
 
1128
- cmap = cm.get_cmap(corner_style.cmap.value)
1128
+ cmap = colormaps[corner_style.cmap.value]
1129
1129
 
1130
1130
  try:
1131
1131
  cmap.with_extremes(
@@ -5,7 +5,7 @@ import sys
5
5
  from builtins import object, range, zip
6
6
 
7
7
  import astromodels.core.model
8
- import matplotlib.cm as cm
8
+ from matplotlib import colormaps
9
9
  import matplotlib.pyplot as plt
10
10
  import numpy as np
11
11
  import pandas as pd
@@ -1255,8 +1255,7 @@ class JointLikelihood(object):
1255
1255
  bounds.append(cc.max())
1256
1256
 
1257
1257
  # Define the color palette
1258
- palette = cm.get_cmap(
1259
- threeML_config["mle"]["contour_cmap"].value) # cm.Pastel1
1258
+ palette = colormaps[threeML_config["mle"]["contour_cmap"].value] # cm.Pastel1
1260
1259
  palette.set_over(threeML_config["mle"]["contour_background"])
1261
1260
  palette.set_under(threeML_config["mle"]["contour_background"])
1262
1261
  palette.set_bad(threeML_config["mle"]["contour_background"])
@@ -176,7 +176,7 @@ def _setup_analysis_dictionaries(
176
176
  if (
177
177
  not use_components
178
178
  or ("total" in components_to_use)
179
- or (not mle_analyses[key]["component_names"])
179
+ or ('main' in mle_analyses[key]["component_names"])
180
180
  ):
181
181
  mle_analyses[key][
182
182
  "fitted point source"
@@ -274,7 +274,7 @@ def _setup_analysis_dictionaries(
274
274
  if (
275
275
  not use_components
276
276
  or ("total" in components_to_use)
277
- or (not bayesian_analyses[key]["component_names"])
277
+ or ('main' in bayesian_analyses[key]["component_names"])
278
278
  ):
279
279
  bayesian_analyses[key][
280
280
  "fitted point source"
@@ -400,11 +400,17 @@ def _collect_sums_into_dictionaries(
400
400
  "total" in components_to_use
401
401
  ):
402
402
  use_total = True
403
+
404
+ if 'main' in list(analyses[key]["components"].keys()
405
+ ):
406
+ use_total = True
403
407
 
404
- for component in list(analyses[key]["components"].keys()):
405
- component_sum_dict.setdefault(component, []).append(
406
- analyses[key]["components"][component]
407
- )
408
+ else:
409
+
410
+ for component in list(analyses[key]["components"].keys()):
411
+ component_sum_dict.setdefault(component, []).append(
412
+ analyses[key]["components"][component]
413
+ )
408
414
 
409
415
  else:
410
416
 
@@ -468,23 +474,29 @@ def _compute_output(analyses, _defaults, out):
468
474
  "total" in _defaults["components_to_use"]
469
475
  ):
470
476
  get_total = True
477
+
478
+ if 'main' in list(analyses[key]["components"].keys()
479
+ ):
480
+ get_total = True
471
481
 
472
- for component in list(analyses[key]["components"].keys()):
473
- # extract the information and plot it
482
+ else:
474
483
 
475
- samples = analyses[key]["components"][component]
484
+ for component in list(analyses[key]["components"].keys()):
485
+ # extract the information and plot it
486
+
487
+ samples = analyses[key]["components"][component]
476
488
 
477
- label = f"{key}: {component}"
489
+ label = f"{key}: {component}"
478
490
 
479
- _append_best_fit_and_errors(
480
- samples,
481
- _defaults,
482
- label,
483
- fluxes,
484
- p_errors,
485
- n_errors,
486
- labels,
487
- )
491
+ _append_best_fit_and_errors(
492
+ samples,
493
+ _defaults,
494
+ label,
495
+ fluxes,
496
+ p_errors,
497
+ n_errors,
498
+ labels,
499
+ )
488
500
 
489
501
  else:
490
502
 
@@ -493,13 +505,18 @@ def _compute_output(analyses, _defaults, out):
493
505
  if get_total:
494
506
  # it ends up that we need to plot the total spectrum
495
507
  # which is just a repeat of the process
496
- samples = analyses[key]["fitted point source"]
497
-
498
- label = f"{key}: total"
508
+
509
+ try:
510
+ samples = analyses[key]["fitted point source"]
511
+ except:
512
+ log.error("%s component(s) not available in source %s" %\
513
+ (_defaults["components_to_use"], key))
514
+ else:
515
+ label = f"{key}: total"
499
516
 
500
- _append_best_fit_and_errors(
501
- samples, _defaults, label, fluxes, p_errors, n_errors, labels
502
- )
517
+ _append_best_fit_and_errors(
518
+ samples, _defaults, label, fluxes, p_errors, n_errors, labels
519
+ )
503
520
 
504
521
  if fluxes:
505
522
  # now make a data frame
@@ -600,7 +617,7 @@ def calculate_point_source_flux(*args, **kwargs):
600
617
  log.error(
601
618
  "The use of calculate_point_source_flux is deprecated. Please use the .get_point_source_flux()"
602
619
  " method of the JointLikelihood.results or the BayesianAnalysis.results member. For example:"
603
- " jl.results.get_point_source_flux()."
620
+ " jl.results.get_flux()."
604
621
  )
605
622
 
606
623
  return _calculate_point_source_flux(*args, **kwargs)
@@ -3,6 +3,7 @@ from builtins import range
3
3
  __author__ = "grburgess"
4
4
 
5
5
  import matplotlib.pyplot as plt
6
+ from matplotlib import colormaps
6
7
  import numpy as np
7
8
 
8
9
 
@@ -44,7 +45,7 @@ def cmap_intervals(length=50, cmap="YlOrBr", start=None, stop=None):
44
45
  successive lines because successive colors are very similar.
45
46
  :param cmap: str name of a matplotlib colormap (see matplotlib.pyplot.cm)
46
47
  """
47
- cm = plt.cm.get_cmap(cmap)
48
+ cm = colormaps[cmap]
48
49
 
49
50
  # qualitative color maps
50
51
  if cmap in [
@@ -1,5 +1,5 @@
1
1
  import matplotlib.pyplot as plt
2
- import matplotlib.cm as cm
2
+ from matplotlib import colormaps
3
3
  import numpy as np
4
4
  import threeML.plugins.PhotometryLike as photolike
5
5
  import threeML.plugins.SpectrumLike as speclike
@@ -592,7 +592,7 @@ def display_photometry_model_magnitudes(analysis, data=(), **kwargs):
592
592
  step = bool(kwargs.pop("step"))
593
593
 
594
594
  if "data_cmap" in kwargs:
595
- data_cmap = cm.get_cmap(kwargs.pop("data_cmap"))
595
+ data_cmap = colormaps[kwargs.pop("data_cmap")]
596
596
  data_colors = cmap_intervals(len(data_keys), data_cmap)
597
597
 
598
598
  if "model_cmap" in kwargs:
@@ -3,6 +3,7 @@ from __future__ import division
3
3
  from builtins import map, range, zip
4
4
 
5
5
  import matplotlib.pyplot as plt
6
+ from matplotlib import colormaps
6
7
  import numpy as np
7
8
  from astromodels import (Function1D, FunctionMeta, Gaussian, Model,
8
9
  PointSource, use_astromodels_memoization)
@@ -138,7 +139,7 @@ def plot_minimizer_path(jl, points=False):
138
139
 
139
140
  # Color map
140
141
  N = len(qx_sets)
141
- cmap = plt.cm.get_cmap("gist_earth", N + 1)
142
+ cmap = colormaps["gist_earth"].resampled(N + 1)
142
143
 
143
144
  for i, (qx, qy) in enumerate(zip(qx_sets, qy_sets)):
144
145
 
@@ -178,7 +178,7 @@ def test_dynesty_nested(bayes_fitter, completed_bn090217206_bayesian_analysis):
178
178
 
179
179
  bayes.set_sampler("dynesty_nested")
180
180
 
181
- bayes.sampler.setup(n_live_points=100, n_effective=10)
181
+ bayes.sampler.setup(n_live_points=200, n_effective=10)
182
182
 
183
183
  bayes.sample()
184
184
 
@@ -6,7 +6,7 @@ from typing import Any, Dict, List, Optional, Union
6
6
 
7
7
  import astropy.io.fits as pyfits
8
8
  import astropy.units as u
9
- import matplotlib.cm as cm
9
+ from matplotlib import colormaps
10
10
  import matplotlib.pyplot as plt
11
11
  import numba as nb
12
12
  import numpy as np
@@ -322,7 +322,7 @@ class InstrumentResponse(object):
322
322
  vmin = self._matrix[self._matrix > 0].min()
323
323
 
324
324
  cmap = copy.deepcopy(
325
- cm.get_cmap(threeML_config.plugins.ogip.response_cmap.value)
325
+ colormaps[threeML_config.plugins.ogip.response_cmap.value]
326
326
  )
327
327
 
328
328
  cmap.set_under(threeML_config.plugins.ogip.response_zero_color)
@@ -629,9 +629,13 @@ class TransientLATDataBuilder(object):
629
629
  os.path.join(gtapp_mp_dir, 'gtltcube_mp.py'),
630
630
  os.path.join(gtapp_mp_dir, 'gttsmap_mp.py'),
631
631
  ]
632
- for _e in executables:
633
- print ("Changing permission to %s" % _e)
634
- os.chmod(_e, 0o755)
632
+
633
+ try:
634
+ for _e in executables:
635
+ log.info('Changing permission to %s' % _e)
636
+ os.chmod(_e, 0o755)
637
+ except PermissionError:
638
+ pass
635
639
 
636
640
  log.info('About to run the following command:\n%s' % cmd)
637
641
 
@@ -1,4 +1,4 @@
1
- from matplotlib import cm
1
+ from matplotlib import colormaps
2
2
  from matplotlib.colors import to_hex
3
3
  import numpy as np
4
4
 
@@ -21,8 +21,7 @@ class _Get_Color(object):
21
21
 
22
22
  def __init__(self, n_colors=5):
23
23
 
24
- cmap = cm.get_cmap(
25
- threeML_config.interface.multi_progress_cmap)
24
+ cmap = colormaps[threeML_config.interface.multi_progress_cmap]
26
25
 
27
26
  self._colors = [to_hex(c) for c in cmap(np.linspace(0,1,n_colors))]
28
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: threeML
3
- Version: 2.4.2.dev1
3
+ Version: 2.4.2.dev2
4
4
  Summary: The Multi-Mission Maximum Likelihood framework
5
5
  Home-page: https://github.com/threeml/threeML
6
6
  Author: Giacomo Vianello
@@ -21,8 +21,8 @@ License-File: LICENSE
21
21
  Requires-Dist: numpy>=1.16
22
22
  Requires-Dist: scipy>=1.4
23
23
  Requires-Dist: emcee>=3
24
- Requires-Dist: astropy>=1.3.3
25
- Requires-Dist: matplotlib
24
+ Requires-Dist: astropy
25
+ Requires-Dist: matplotlib<3.9
26
26
  Requires-Dist: uncertainties
27
27
  Requires-Dist: pyyaml>=5.1
28
28
  Requires-Dist: dill
@@ -38,7 +38,7 @@ Requires-Dist: ipyparallel
38
38
  Requires-Dist: joblib
39
39
  Requires-Dist: numexpr
40
40
  Requires-Dist: dynesty
41
- Requires-Dist: numba<0.59
41
+ Requires-Dist: numba
42
42
  Requires-Dist: numdifftools
43
43
  Requires-Dist: tqdm>=4.56.0
44
44
  Requires-Dist: colorama
@@ -1,8 +1,8 @@
1
1
  numpy>=1.16
2
2
  scipy>=1.4
3
3
  emcee>=3
4
- astropy>=1.3.3
5
- matplotlib
4
+ astropy
5
+ matplotlib<3.9
6
6
  uncertainties
7
7
  pyyaml>=5.1
8
8
  dill
@@ -18,7 +18,7 @@ ipyparallel
18
18
  joblib
19
19
  numexpr
20
20
  dynesty
21
- numba<0.59
21
+ numba
22
22
  numdifftools
23
23
  tqdm>=4.56.0
24
24
  colorama
File without changes
File without changes
File without changes
File without changes
@@ -22,6 +22,10 @@ except ImportError:
22
22
  from pathlib import Path
23
23
 
24
24
  from threeML.io.logging import setup_logger
25
+
26
+ # Import everything from astromodels
27
+ from astromodels import *
28
+
25
29
  from .config import (
26
30
  threeML_config,
27
31
  show_configuration,
@@ -62,10 +66,6 @@ del get_versions
62
66
  import traceback
63
67
  from importlib.machinery import SourceFileLoader
64
68
 
65
- # Import everything from astromodels
66
- from astromodels import *
67
-
68
-
69
69
  # Finally import the serialization machinery
70
70
  from .io.serialization import *
71
71