|
203 | 203 | 'get_max_delay', 'initialize', 'list_standard_models', 'name', |
204 | 204 | 'record', "get_machine"] |
205 | 205 |
|
206 | | - |
207 | | -class __PynnOperations(TypedDict, total=False): |
208 | | - run: Callable[[float, Any], float] |
209 | | - run_until: Callable[[float, Any], float] |
210 | | - get_current_time: Callable[[], float] |
211 | | - get_time_step: Callable[[], float] |
212 | | - get_max_delay: Callable[[], int] |
213 | | - get_min_delay: Callable[[], int] |
214 | | - num_processes: Callable[[], int] |
215 | | - rank: Callable[[], int] |
216 | | - reset: Callable[[Dict[str, Any]], None] |
217 | | - create: Callable[ |
218 | | - [Union[Type, AbstractPyNNModel], Optional[Dict[str, Any]], int], |
219 | | - Population] |
220 | | - connect: Callable[ |
221 | | - [Population, Population, float, Optional[float], Optional[str], int, |
222 | | - Optional[NumpyRNG]], None] |
223 | | - record: Callable[ |
224 | | - [Union[str, Sequence[str]], PopulationBase, str, Optional[float], |
225 | | - Optional[Dict[str, Any]]], Block] |
226 | | - |
227 | 206 | # Cache of the simulator created by setup |
228 | 207 | __simulator: Optional[SpiNNaker] = None |
229 | 208 |
|
@@ -500,7 +479,7 @@ def connect(pre: Population, post: Population, weight: float = 0.0, |
500 | 479 | """ |
501 | 480 | SpynnakerDataView.check_user_can_act() |
502 | 481 | if isinstance(pre, IDMixin): |
503 | | - pre = pre.as_view() |
| 482 | + pre = pre.as_view() |
504 | 483 | if isinstance(post, IDMixin): |
505 | 484 | post = post.as_view() |
506 | 485 | connector = FixedProbabilityConnector(p_connect=p) |
@@ -697,6 +676,7 @@ def _run_until(time_point: float, callbacks: Optional[List[Callable]] = None): |
697 | 676 | __simulator.run_until(time_point) |
698 | 677 | return __simulator.t |
699 | 678 |
|
| 679 | + |
700 | 680 | def run(simtime: float, callbacks: Optional[List[Callable]] = None) -> float: |
701 | 681 | """ |
702 | 682 | The run() function advances the simulation for a given number of |
|
0 commit comments