Skip to content

Commit

Permalink
Add conditional in case of prior ray.init
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Oct 8, 2024
1 parent 3772c50 commit 050fb87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/scripts/ct_datagen_foam2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
import logging
import ray

ray.init(logging_level=logging.ERROR) # need to call init before jax import: ray-project/ray#44087
if not ray.is_initialized():
ray.init(
logging_level=logging.ERROR
) # need to call init before jax import: ray-project/ray#44087

from scico import plot
from scico.flax.examples import load_ct_data
Expand Down

0 comments on commit 050fb87

Please sign in to comment.