diff --git a/scripts/jax_likelihood_functions/imaging/delaunay.py b/scripts/jax_likelihood_functions/imaging/delaunay.py index d5508cce..d0333ac3 100644 --- a/scripts/jax_likelihood_functions/imaging/delaunay.py +++ b/scripts/jax_likelihood_functions/imaging/delaunay.py @@ -56,7 +56,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/imaging/delaunay_mge.py b/scripts/jax_likelihood_functions/imaging/delaunay_mge.py index 17347cfb..657c3757 100644 --- a/scripts/jax_likelihood_functions/imaging/delaunay_mge.py +++ b/scripts/jax_likelihood_functions/imaging/delaunay_mge.py @@ -55,7 +55,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/imaging/lp.py b/scripts/jax_likelihood_functions/imaging/lp.py index 7b1e0e5d..4866e724 100644 --- a/scripts/jax_likelihood_functions/imaging/lp.py +++ b/scripts/jax_likelihood_functions/imaging/lp.py @@ -53,7 +53,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/imaging/mge.py b/scripts/jax_likelihood_functions/imaging/mge.py index 31458ac5..01ba3ac3 100644 --- a/scripts/jax_likelihood_functions/imaging/mge.py +++ b/scripts/jax_likelihood_functions/imaging/mge.py @@ -54,7 +54,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/imaging/mge_group.py b/scripts/jax_likelihood_functions/imaging/mge_group.py index 638dbdff..6a0fcdab 100644 --- a/scripts/jax_likelihood_functions/imaging/mge_group.py +++ b/scripts/jax_likelihood_functions/imaging/mge_group.py @@ -54,7 +54,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/imaging/rectangular.py b/scripts/jax_likelihood_functions/imaging/rectangular.py index def99f85..10642a45 100644 --- a/scripts/jax_likelihood_functions/imaging/rectangular.py +++ b/scripts/jax_likelihood_functions/imaging/rectangular.py @@ -53,7 +53,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/imaging/rectangular_dspl.py b/scripts/jax_likelihood_functions/imaging/rectangular_dspl.py index 89352877..84573bbf 100644 --- a/scripts/jax_likelihood_functions/imaging/rectangular_dspl.py +++ b/scripts/jax_likelihood_functions/imaging/rectangular_dspl.py @@ -56,7 +56,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/imaging/rectangular_mge.py b/scripts/jax_likelihood_functions/imaging/rectangular_mge.py index 36c44a4f..0153e045 100644 --- a/scripts/jax_likelihood_functions/imaging/rectangular_mge.py +++ b/scripts/jax_likelihood_functions/imaging/rectangular_mge.py @@ -55,7 +55,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/interferometer/mge.py b/scripts/jax_likelihood_functions/interferometer/mge.py index 1eebfe3d..3da5fc2d 100644 --- a/scripts/jax_likelihood_functions/interferometer/mge.py +++ b/scripts/jax_likelihood_functions/interferometer/mge.py @@ -68,7 +68,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/interferometer/mge_group.py b/scripts/jax_likelihood_functions/interferometer/mge_group.py index 25ef21d2..4408a211 100644 --- a/scripts/jax_likelihood_functions/interferometer/mge_group.py +++ b/scripts/jax_likelihood_functions/interferometer/mge_group.py @@ -29,7 +29,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/interferometer/rectangular.py b/scripts/jax_likelihood_functions/interferometer/rectangular.py index a60fd548..c1f3e162 100644 --- a/scripts/jax_likelihood_functions/interferometer/rectangular.py +++ b/scripts/jax_likelihood_functions/interferometer/rectangular.py @@ -67,7 +67,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/multi/mge.py b/scripts/jax_likelihood_functions/multi/mge.py index 7128e5a9..dfe8ed3d 100644 --- a/scripts/jax_likelihood_functions/multi/mge.py +++ b/scripts/jax_likelihood_functions/multi/mge.py @@ -26,7 +26,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not path.exists(dataset_path): +if al.util.dataset.should_simulate(dataset_path): import subprocess import sys diff --git a/scripts/jax_likelihood_functions/point_source/point.py b/scripts/jax_likelihood_functions/point_source/point.py index ce7b5d47..2b996fcc 100644 --- a/scripts/jax_likelihood_functions/point_source/point.py +++ b/scripts/jax_likelihood_functions/point_source/point.py @@ -56,7 +56,7 @@ If the dataset does not already exist on your system, it will be created by running the corresponding simulator script. This ensures that all example scripts can be run without manually simulating data first. """ -if not dataset_path.exists(): +if al.util.dataset.should_simulate(str(dataset_path)): import subprocess import sys