Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow standalone system simulation component #155

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rosesyrett
Copy link
Contributor

This involves changing the SystemSimulation input parameters, and making it so that the slave scheduler runs an 'initial' tick in the same way as master.

Relates to #149

@rosesyrett rosesyrett changed the title Allow standalone system simulation component Draft: Allow standalone system simulation component Jul 11, 2023
@rosesyrett rosesyrett marked this pull request as draft July 11, 2023 15:05
@rosesyrett rosesyrett changed the title Draft: Allow standalone system simulation component Allow standalone system simulation component Jul 11, 2023
This involves changing the SystemSimulation input parameters, and making
it so that the slave scheduler runs an 'initial' tick in the same way as
master.
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #155 (d6cd04f) into master (0ff34b1) will decrease coverage by 0.35%.
The diff coverage is 68.75%.

@@            Coverage Diff             @@
##           master     #155      +/-   ##
==========================================
- Coverage   94.69%   94.35%   -0.35%     
==========================================
  Files          44       44              
  Lines        1264     1276      +12     
==========================================
+ Hits         1197     1204       +7     
- Misses         67       72       +5     
Impacted Files Coverage Δ
src/tickit/core/management/schedulers/slave.py 91.93% <66.66%> (-8.07%) ⬇️
src/tickit/core/components/system_simulation.py 97.67% <100.00%> (-0.11%) ⬇️

Comment on lines +1 to +11
- tickit.core.components.system_simulation.SystemSimulation:
name: internal_tickit
inputs: {}
components:
- examples.devices.counter.Counter:
name: counter
inputs: {}
- tickit.devices.sink.Sink:
name: counter_sink
inputs:
input: counter:value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- tickit.core.components.system_simulation.SystemSimulation:
name: internal_tickit
inputs: {}
components:
- examples.devices.counter.Counter:
name: counter
inputs: {}
- tickit.devices.sink.Sink:
name: counter_sink
inputs:
input: counter:value
- type: tickit.core.components.system_simulation.SystemSimulation
name: internal_tickit
inputs: {}
components:
- type: examples.devices.counter.Counter
name: counter
inputs: {}
- type: tickit.devices.sink.Sink
name: counter_sink
inputs:
input:
component: counter
port: value

Comment on lines +1 to +12
- tickit.core.components.system_simulation.SystemSimulation:
name: internal_tickit
inputs: {}
components:
- tickit.devices.source.Source:
name: internal_source
inputs: {}
value: 42
- tickit.devices.sink.Sink:
name: internal_sink
inputs:
input: internal_source:value
Copy link
Contributor

@DiamondJoseph DiamondJoseph Jul 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- tickit.core.components.system_simulation.SystemSimulation:
name: internal_tickit
inputs: {}
components:
- tickit.devices.source.Source:
name: internal_source
inputs: {}
value: 42
- tickit.devices.sink.Sink:
name: internal_sink
inputs:
input: internal_source:value
- type: tickit.core.components.system_simulation.SystemSimulation
name: internal_tickit
inputs: {}
components:
- type: tickit.devices.source.Source
name: internal_source
inputs: {}
value: 42
- type: tickit.devices.sink.Sink
name: internal_sink
inputs:
input:
component: internal_source
port: value

Comment on lines +1 to +8
- tickit.devices.source.Source:
name: internal_source
inputs: {}
value: 42
- tickit.devices.sink.Sink:
name: internal_sink
inputs:
input: internal_source:value
Copy link
Contributor

@DiamondJoseph DiamondJoseph Jul 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- tickit.devices.source.Source:
name: internal_source
inputs: {}
value: 42
- tickit.devices.sink.Sink:
name: internal_sink
inputs:
input: internal_source:value
- type: tickit.devices.source.Source
name: internal_source
inputs: {}
value: 42
- type: tickit.devices.sink.Sink
name: internal_sink
inputs:
input:
component: internal_source
port: value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants