Skip to content

Commit

Permalink
update changes in examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Oct 5, 2023
1 parent 79c9560 commit 6e254f8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1,661 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# general things to ignore
*build/
dist/
docs/_autosummary
**/_autosummary*
docs/auto_examples/
*.egg-info/
*.egg
Expand All @@ -13,9 +13,11 @@ __pycache__/
.tox
.cache

_version.py
# hydra
outputs/
multirun/
# personal stuff
scripts/
datasets/
benchmark/
6 changes: 3 additions & 3 deletions examples/example_shepp_logan.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import matplotlib.pyplot as plt

from simfmri.simulator import SimulationData
from simfmri.simulator import SimData
from simfmri.simulator import (
SheppLoganGeneratorHandler,
ActivationHandler,
Expand All @@ -30,10 +30,10 @@
snr = 100

# %%
# This data is used to createa the main SimulationData object, which gather
# This data is used to createa the main SimData object, which gather
# all the data related to this simulation

sim_data = SimulationData(shape=shape, n_frames=n_frames, sim_tr=1, n_coils=1)
sim_data = SimData(shape=shape, n_frames=n_frames, sim_tr=1, n_coils=1)

print(sim_data)

Expand Down
2 changes: 1 addition & 1 deletion examples/example_simulation_with_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

sim_config = """
### Simulation for a Shepp Logan phantom with activation.
_target_: simfmri.simulator.SimulationDataFactory
_target_: simfmri.simulator.SimDataFactory
checkpoints: false
sim_params:
_target_: simfmri.simulator.SimulationParams
Expand Down
4 changes: 2 additions & 2 deletions examples/example_vds_simrec.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
import matplotlib.pyplot as plt
import numpy as np
from simfmri.simulator import H, SimulationData, list_handlers
from simfmri.simulator import H, SimData, list_handlers
from simfmri.runner.reconstructor import (
ZeroFilledReconstructor,
SequentialReconstructor,
Expand All @@ -21,7 +21,7 @@
# ``lazy=True`` means that the data will be generated on the fly when needed.
# This is useful to avoid storing large data in memory.

sim = SimulationData(
sim = SimData(
(64, 64), sim_tr=0.1, sim_time=300, fov=0.192, n_coils=4, rng=42, lazy=True
)

Expand Down
1,654 changes: 0 additions & 1,654 deletions examples/simple_benchmark.ipynb

This file was deleted.

0 comments on commit 6e254f8

Please sign in to comment.