From 63c3f2a17881139e29e1312a35fe221f0d65f338 Mon Sep 17 00:00:00 2001 From: Benjamin Johnson Date: Sun, 10 Sep 2023 12:55:34 -0400 Subject: [PATCH] Don't raise error if ray already initialized. --- fitsmap/convert.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fitsmap/convert.py b/fitsmap/convert.py index b3e6eb5..9b1b1a0 100644 --- a/fitsmap/convert.py +++ b/fitsmap/convert.py @@ -1081,6 +1081,7 @@ def files_to_map( # to the console. These should be changed during development debug = os.getenv("FITSMAP_DEBUG", "False").lower() == "true" ray.init( + ignore_reinit_error=True, include_dashboard=debug, # during dev == True configure_logging=~debug, # during dev == False logging_level=logging.INFO