-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change deserialization based around ComponentConfig instances (#16)
* Try to fix #4 for cryostream only * Fix the mypy error for raise_interrupt * Try to fix #4 for cryostream only * Fix the mypy error for raise_interrupt * Ported everything apart from nested and tests * Support SystemSimulation * Fixed remaining tests * Fix docs * Update tickit/core/management/event_router.py Co-authored-by: Garry O'Donnell <[email protected]> * Update tickit/cli.py Co-authored-by: Garry O'Donnell <[email protected]> * Update tickit/cli.py Co-authored-by: Garry O'Donnell <[email protected]> * Update tickit/core/components/system_simulation.py Co-authored-by: Garry O'Donnell <[email protected]> * Update tickit/core/components/device_simulation.py Co-authored-by: Garry O'Donnell <[email protected]> * Fix event_router indentation * Add test for as_tagged_union and fix bug * Rename lifetime_runnable to runner * Fix test_runner to use correct mock library Co-authored-by: Garry O'Donnell <[email protected]> Co-authored-by: Garry O'Donnell <garry.o'[email protected]>
- Loading branch information
1 parent
653cc5f
commit 2e41f45
Showing
58 changed files
with
986 additions
and
1,831 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ | |
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
}, | ||
"restructuredtext.confPath": "", | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: | ||
- tickit.devices.pneumatic.pneumatic.PneumaticAdapter: | ||
ioc_name: PNEUMATIC | ||
db_file: tickit/devices/pneumatic/db_files/filter1.db | ||
device: | ||
tickit.devices.pneumatic.pneumatic.Pneumatic: | ||
initial_speed: 2.5 | ||
initial_state: False | ||
inputs: {} | ||
- tickit.devices.pneumatic.Pneumatic: | ||
name: filter1 | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: [] | ||
device: | ||
tickit.devices.sink.Sink: {} | ||
inputs: {} | ||
initial_speed: 0.5 | ||
initial_state: False | ||
ioc_name: PNEUMATIC | ||
db_file: tickit/devices/pneumatic/db_files/filter1.db | ||
- tickit.devices.sink.Sink: | ||
name: contr_sink | ||
inputs: | ||
input: filter1:output | ||
name: contr_sink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: | ||
- tickit.devices.cryostream.cryostream.CryostreamAdapter: {} | ||
device: | ||
tickit.devices.cryostream.cryostream.Cryostream: {} | ||
inputs: {} | ||
- tickit.devices.cryostream.Cryostream: | ||
name: cryo | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: [] | ||
device: | ||
tickit.devices.sink.Sink: {} | ||
inputs: | ||
input: cryo:temperature | ||
name: contr_sink | ||
inputs: {} | ||
- tickit.devices.sink.Sink: | ||
name: contr_sink | ||
inputs: | ||
input: cryo:temperature | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: | ||
- tickit.devices.femto.femto.FemtoAdapter: | ||
ioc_name: FEMTO | ||
db_file: tickit/devices/femto/record.db | ||
device: | ||
tickit.devices.femto.femto.Femto: | ||
initial_gain: 2.5 | ||
initial_current: 0.0 | ||
- tickit.devices.femto.Current: | ||
name: current_device | ||
inputs: {} | ||
callback_period: 1000000000 | ||
- tickit.devices.femto.Femto: | ||
name: femto | ||
inputs: | ||
input: current_device:output | ||
name: femto | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: [] | ||
device: | ||
tickit.devices.femto.femto.CurrentDevice: | ||
callback_period: 1000000000 | ||
inputs: {} | ||
name: current_device | ||
initial_gain: 2.5 | ||
initial_current: 0.0 | ||
db_file: tickit/devices/femto/record.db | ||
ioc_name: FEMTO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: [] | ||
device: | ||
tickit.devices.source.Source: | ||
value: False | ||
inputs: {} | ||
- tickit.devices.source.Source: | ||
name: source | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: | ||
- examples.devices.http_device.ExampleHTTPAdapter: {} | ||
device: | ||
examples.devices.http_device.ExampleHTTPDevice: | ||
foo: False | ||
bar: 10 | ||
inputs: {} | ||
value: False | ||
- examples.devices.http_device.ExampleHTTP: | ||
name: http-device | ||
inputs: | ||
foo: source:value | ||
name: http-device | ||
foo: False | ||
bar: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,22 @@ | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: [] | ||
device: | ||
examples.devices.trampoline.RandomTrampoline: | ||
callback_period: 10000000000 | ||
inputs: {} | ||
- examples.devices.trampoline.RandomTrampoline: | ||
name: random_trampoline | ||
inputs: {} | ||
callback_period: 10000000000 | ||
- tickit.core.components.system_simulation.SystemSimulation: | ||
components: | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: [] | ||
device: | ||
tickit.devices.sink.Sink: {} | ||
inputs: | ||
sink_1: external:input_1 | ||
name: internal_sink | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: | ||
- examples.devices.remote_controlled.RemoteControlledAdapter: | ||
server: | ||
tickit.adapters.servers.tcp.TcpServer: {} | ||
device: | ||
examples.devices.remote_controlled.RemoteControlled: {} | ||
inputs: {} | ||
name: internal_tcp_controlled | ||
name: internal_tickit | ||
inputs: | ||
input_1: random_trampoline:output | ||
name: internal_tickit | ||
components: | ||
- tickit.devices.sink.Sink: | ||
name: internal_sink | ||
inputs: | ||
sink_1: external:input_1 | ||
- examples.devices.remote_controlled.RemoteControlled: | ||
name: internal_tcp_controlled | ||
inputs: {} | ||
expose: | ||
output_1: internal_tcp_controlled:observed | ||
- tickit.core.components.device_simulation.DeviceSimulation: | ||
adapters: [] | ||
device: | ||
tickit.devices.sink.Sink: {} | ||
- tickit.devices.sink.Sink: | ||
name: external_sink | ||
inputs: | ||
sink_1: internal_tickit:output_1 | ||
name: external_sink |
Oops, something went wrong.