Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions scripts/dataset_1d/advanced/database/start_here.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,10 @@
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 ac.util.dataset.should_simulate(path.join("dataset", "dataset_1d", "simple")):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
path.join("dataset", "dataset_1d", "simple"),
simulator="scripts/dataset_1d/simulators/start_here.py",
)

norm_list = [100, 5000, 25000, 200000]

Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/advanced/temporal/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/examples/temporal.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/examples/temporal.py"
)

"""
__Layout__
Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/correction/start_here.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

"""
__Shape__
Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

shape_native = (200,)

Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/modeling/customize/priors.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

"""
__Shape__
Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/modeling/features/species_x3.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/examples/species_x3.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/examples/species_x3.py"
)

"""
__Shape__
Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/modeling/features/visualize_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

"""
__Shape__
Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/modeling/start_here.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

"""
__Shape__
Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/results/examples/cti.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

shape_native = (200,)

Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/results/examples/fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

shape_native = (200,)

Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/results/examples/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

shape_native = (200,)

Expand Down
11 changes: 3 additions & 8 deletions scripts/dataset_1d/results/start_here.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/dataset_1d/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/dataset_1d/simulators/start_here.py"
)

shape_native = (200,)

Expand Down
11 changes: 3 additions & 8 deletions scripts/imaging_ci/advanced/chaining/pipelines/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/start_here.py"
)

"""
__Layout__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/examples/parallel_and_serial.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path,
simulator="scripts/imaging_ci/simulators/examples/parallel_and_serial.py",
)

"""
__Layout__
Expand Down
11 changes: 3 additions & 8 deletions scripts/imaging_ci/advanced/chaining/pipelines/serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/examples/serial_cti.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/examples/serial_cti.py"
)

"""
__Layout__
Expand Down
11 changes: 3 additions & 8 deletions scripts/imaging_ci/advanced/chaining/x1_species_to_x2_species.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/start_here.py"
)

"""
__Layout__
Expand Down
11 changes: 3 additions & 8 deletions scripts/imaging_ci/correction/start_here.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/start_here.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/start_here.py"
)

"""
__Layout__
Expand Down
11 changes: 3 additions & 8 deletions scripts/imaging_ci/data_preparation/examples/bias_subtraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/examples/bias_uncorrected.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/examples/bias_uncorrected.py"
)

shape_native = (2000, 100)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/examples/cosmic_rays.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/examples/cosmic_rays.py"
)

shape_native = (2000, 100)

Expand Down
11 changes: 3 additions & 8 deletions scripts/imaging_ci/data_preparation/examples/pre_cti.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/examples/non_uniform.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/examples/non_uniform.py"
)

shape_native = (2000, 100)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/examples/cosmic_rays.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/examples/cosmic_rays.py"
)

shape_native = (2000, 100)

Expand Down
11 changes: 3 additions & 8 deletions scripts/imaging_ci/data_preparation/examples/serial_cti.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,9 @@
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 ac.util.dataset.should_simulate(dataset_path):
import subprocess
import sys

subprocess.run(
[sys.executable, "scripts/imaging_ci/simulators/examples/serial_cti.py"],
check=True,
)
ac.util.dataset.simulate_if_needed(
dataset_path, simulator="scripts/imaging_ci/simulators/examples/serial_cti.py"
)

shape_native = (2000, 100)

Expand Down
Loading
Loading