Skip to content

Commit

Permalink
Rename system_simulation file to system_component
Browse files Browse the repository at this point in the history
  • Loading branch information
abbiemery committed Sep 13, 2023
1 parent 7145fba commit 2b80b08
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions docs/user/explanations/components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ the master scheduler's wiring is correct, for example:
name: random_trampoline
inputs: {}
callback_period: 10000000000
- type: tickit.core.components.system_simulation.SystemSimulation
- type: tickit.core.components.system_component.SystemSimulation
name: internal_tickit
inputs:
input_1:
Expand Down Expand Up @@ -80,5 +80,5 @@ A simulation containing both types of component will look something like this:



.. _DeviceSimulation: <tickit.core.device_simulation.DeviceComponent>
.. _SystemSimulationComponent: <tickit.core.system_simulation.SystemComponent>
.. _DeviceComponent: <tickit.core.components.device_component.DeviceComponent>
.. _SystemComponent: <tickit.core.components.system_component.SystemComponent>
4 changes: 2 additions & 2 deletions docs/user/reference/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ This is the internal API reference for tickit
``tickit.core.components.device_component``
--------------------------------------------

.. automodule:: tickit.core.components.system_simulation
.. automodule:: tickit.core.components.system_component
:members:

``tickit.core.components.system_simulation``
``tickit.core.components.system_component``
--------------------------------------------


Expand Down
2 changes: 1 addition & 1 deletion examples/adapters/system_simulation_adapter_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from tickit.adapters.io.tcp_io import TcpIo
from tickit.core.adapter import AdapterContainer
from tickit.core.components.component import Component, ComponentConfig
from tickit.core.components.system_simulation import SystemComponent
from tickit.core.components.system_component import SystemComponent
from tickit.core.typedefs import ComponentID, ComponentPort, PortID


Expand Down
2 changes: 1 addition & 1 deletion examples/configs/nested.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: random_trampoline
inputs: {}
callback_period: 10000000000
- type: tickit.core.components.system_simulation.SystemSimulation
- type: tickit.core.components.system_component.SystemSimulation
name: internal_tickit
inputs:
input_1:
Expand Down
6 changes: 3 additions & 3 deletions tests/core/components/test_system_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from mock.mock import create_autospec

from tickit.core.components.component import Component
from tickit.core.components.system_simulation import (
from tickit.core.components.system_component import (
SystemSimulation,
SystemComponent,
)
Expand Down Expand Up @@ -39,7 +39,7 @@ def mock_state_consumer_type() -> Mock:

@pytest.fixture
def patch_scheduler() -> Iterable[Mock]:
spec = "tickit.core.components.system_simulation.SlaveScheduler"
spec = "tickit.core.components.system_component.SlaveScheduler"
with patch(spec, autospec=True) as mock:

def on_tick(time, changes):
Expand Down Expand Up @@ -72,7 +72,7 @@ def test_system_simulation_constructor(system_simulation: SystemSimulation):
@pytest.fixture
def patch_asyncio() -> Iterable[Mock]:
with patch(
"tickit.core.components.system_simulation.asyncio", autospec=True
"tickit.core.components.system_component.asyncio", autospec=True
) as mock:
yield mock

Expand Down
2 changes: 1 addition & 1 deletion tests/system_tests/configs/nested.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: external_source
inputs: {}
value: 42
- type: tickit.core.components.system_simulation.SystemSimulation
- type: tickit.core.components.system_component.SystemSimulation
name: internal_tickit
inputs:
input_1:
Expand Down
2 changes: 1 addition & 1 deletion tests/system_tests/test_with_master_and_slave.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from tickit.core.components.component import Component, ComponentConfig
from tickit.core.components.device_component import DeviceComponent
from tickit.core.components.system_simulation import SystemComponent
from tickit.core.components.system_component import SystemComponent
from tickit.core.management.event_router import InverseWiring
from tickit.core.management.schedulers.master import MasterScheduler
from tickit.core.state_interfaces.state_interface import get_interface
Expand Down

0 comments on commit 2b80b08

Please sign in to comment.