Skip to content

Commit

Permalink
Bump treverhines-rbf
Browse files Browse the repository at this point in the history
  • Loading branch information
frthjf committed Oct 22, 2024
1 parent 43fba6d commit f03f9ae
Show file tree
Hide file tree
Showing 3 changed files with 1,434 additions and 7 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ dev-dependencies = [
"ruff>=0.6.9",
]

[tool.uv.sources]
treverhines-rbf = { git = "https://github.com/treverhines/RBF" }

[tool.hatch.metadata]
allow-direct-references = true

Expand Down Expand Up @@ -77,4 +80,4 @@ check-config = "scripts.tools.check_config:main"
cut-slice = "scripts.tools.cut_slice:main"
sample-cells = "scripts.tools.sample_cells:main"
reposition-trees = "scripts.tools.reposition_trees:main"
optimize-network = "scripts.optimization.optimize_network:main_cli"
optimize-network = "scripts.optimization.optimize_network:main_cli"
6 changes: 4 additions & 2 deletions src/miv_simulator/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Network initialization routines.
"""

from typing import Dict, Union
from typing import Dict, Union, Optional
import gc
import os
import pprint
Expand All @@ -21,7 +21,6 @@
from miv_simulator.utils import neuron as neuron_utils
from miv_simulator.utils import profile_memory, simtime, zip_longest
from miv_simulator.utils.neuron import h
from miv_simulator.opto.run import *

if hasattr(h, "nrnmpi_init"):
h.nrnmpi_init()
Expand Down Expand Up @@ -1684,6 +1683,9 @@ def init(env: Env, subworld_size: Optional[int] = None) -> None:
}
rho_params = env.opsin_config["rho parameters"]
protocol_params = env.opsin_config["protocol parameters"]

from miv_simulator.opto.run import OptoStim

env.opto_stim = OptoStim(
env.pc,
opsin_pop_dict,
Expand Down
Loading

0 comments on commit f03f9ae

Please sign in to comment.