Skip to content

Commit

Permalink
Merge pull request #16 from SFB-ELAINE/collapse_VTA_fix
Browse files Browse the repository at this point in the history
Collapse vta fix
  • Loading branch information
Kinway25 authored Feb 15, 2024
2 parents deb1ca3 + deb1f4b commit b05fcae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ossdbs/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,19 +250,18 @@ def generate_point_models(settings: dict):
dir_par = settings["PointModel"]["Lattice"]["Direction"]
direction = dir_par["x[mm]"], dir_par["y[mm]"], dir_par["z[mm]"]
distance = settings["PointModel"]["Lattice"]["PointDistance[mm]"]
collapse_vta = settings["PointModel"]["Lattice"]["CollapseVTA"]

point_models.append(
Lattice(
shape=shape,
center=center,
distance=distance,
direction=direction,
collapse_vta=collapse_vta,
)
)

collapse_vta = settings["PointModel"]["Lattice"]["CollapseVTA"]
point_models[-1].collapse_vta = collapse_vta

if settings["PointModel"]["VoxelLattice"]["Active"]:
_logger.info("from voxel lattice")
center_par = settings["PointModel"]["Lattice"]["Center"]
Expand Down Expand Up @@ -441,7 +440,7 @@ def run_volume_conductor_model(settings, volume_conductor):
point_models=point_models,
activation_threshold=settings["ActivationThresholdVTA"],
out_of_core=out_of_core,
export_frequency=export_frequency
export_frequency=export_frequency,
)
return vcm_timings

Expand Down

0 comments on commit b05fcae

Please sign in to comment.