Skip to content

Commit

Permalink
Update FastCS version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelldls committed Oct 8, 2024
1 parent 18f9bad commit 605393c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ classifiers = [
]
description = "FastCS support for the ThorLabs MFF (Motorized Filter Flipper)"
dependencies = [
"FastCS==0.5.0",
"FastCS",
"typer",
] # Add project dependencies here, e.g. ["click", "numpy"]
dynamic = ["version"]
Expand Down
9 changes: 3 additions & 6 deletions src/thorlabs_mff_fastcs/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import typer
from fastcs.connections.serial_connection import SerialConnectionSettings
from fastcs.mapping import Mapping

from thorlabs_mff_fastcs.controllers import (
ThorlabsMFF,
Expand Down Expand Up @@ -58,11 +57,9 @@ def ioc(
"""
from fastcs.backends.epics.backend import EpicsBackend, EpicsGUIOptions

mapping = Mapping(get_controller(port, baud))

backend = EpicsBackend(mapping, pv_prefix)
backend.create_gui(EpicsGUIOptions(output_path / "output.bob"))
backend.get_ioc().run()
backend = EpicsBackend(get_controller(port, baud), pv_prefix)
backend.create_gui(EpicsGUIOptions(output_path / "index.bob"))
backend.run()


def get_controller(port: str, baud: int) -> ThorlabsMFF:
Expand Down

0 comments on commit 605393c

Please sign in to comment.