Skip to content

Commit

Permalink
Change documentation to add passing global id to simulation during de…
Browse files Browse the repository at this point in the history
…fining
  • Loading branch information
IshaanDesai committed Feb 2, 2024
1 parent 0411ca5 commit 1219a0d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/micro-simulation-convert-to-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ Restructure your micro simulation code into a Python class with the structure gi

```python
class MicroSimulation: # Name is fixed
def __init__(self):
def __init__(self, sim_id):
"""
Constructor of class MicroSimulation.
Parameters
----------
sim_id : int
ID of the simulation instance, that the Micro Manager has set for it.
"""

def solve(self, macro_data: dict, dt: float) -> dict:
Expand Down

0 comments on commit 1219a0d

Please sign in to comment.