From 91784c23a5427689f5cc2740b3e1877b5c4b718d Mon Sep 17 00:00:00 2001 From: Alfred Castro Ginard Date: Mon, 22 Apr 2024 14:31:56 +0200 Subject: [PATCH] update for binaries SF --- docs/index.rst | 1 + src/gaiaunlimited/selectionfunctions/binaries.py | 2 -- src/gaiaunlimited/utils.py | 7 +++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 1b7bac9..1fd91cc 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -40,6 +40,7 @@ Horizon 2020 research and innovation program under grant agreement No 101004110. notebooks/getting-started notebooks/dr3-empirical-completeness notebooks/constructing_SelectionFunctions + notebooks/dr3-unresolved-binaries notebooks/scanninglaw citation api diff --git a/src/gaiaunlimited/selectionfunctions/binaries.py b/src/gaiaunlimited/selectionfunctions/binaries.py index 60c8bd0..0eddec5 100644 --- a/src/gaiaunlimited/selectionfunctions/binaries.py +++ b/src/gaiaunlimited/selectionfunctions/binaries.py @@ -13,8 +13,6 @@ class BinarySystemsSelectionFunction(fetch_utils.DownloadMixin): } """ - - print("Functionality under development") datafiles = { "dict_SL_ruwe.pkl": " "#"https://zenodo.org/record/8063930/files/allsky_M10_hpx7.hdf5" diff --git a/src/gaiaunlimited/utils.py b/src/gaiaunlimited/utils.py index d3b5e78..4217a0a 100644 --- a/src/gaiaunlimited/utils.py +++ b/src/gaiaunlimited/utils.py @@ -7,6 +7,7 @@ from astropy import constants, coordinates import pickle from astromet import sigma_ast +import time __all__ = ["coord2healpix", "get_healpix_centers","SimulateGaiaSource"] @@ -89,8 +90,6 @@ class SimulateGaiaSource(fetch_utils.DownloadMixin): } """ - print("Functionality under development") - datafiles = { "dict_SL_ruwe.pkl": " "#"https://zenodo.org/record/8063930/files/allsky_M10_hpx7.hdf5" } @@ -224,8 +223,8 @@ def eta( η += delta_η if (np.max(np.abs(delta_η)) < 1e-5): break - else: - logger.warn(f"Did not converge after {max_iter} iterations ({delta_η:.1e}).") + #else: + # logger.warn(f"Did not converge after {max_iter} iterations ({delta_η:.1e}).") return η