Skip to content

Commit c73d73b

Browse files
slowy07Jinyu-W
authored andcommitted
fix: fix typo spelling code commented and data_model.rst
1 parent 665a9aa commit c73d73b

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

docs/source/key_components/data_model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ the backend language for improving the execution reference. What's more,
88
the backend store is a pluggable design, user can choose different backend
99
implementation based on their real performance requirement and device limitation.
1010

11-
Currenty there are two data model backend implementation: static and dynamic.
11+
Currently there are two data model backend implementation: static and dynamic.
1212
Static implementation used Numpy as its data store, do not support dynamic
1313
attribute length, the advance of this version is that its memory size is same as its
1414
declaration.

maro/cli/envs/list_available.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def list_available():
2525
# maro env list
2626
def list_scenarios(**kwargs):
2727
"""
28-
Show all avaiable scenarios
28+
Show all available scenarios
2929
"""
3030

3131
for scenario in get_scenarios():

maro/cli/maro_real_time_vis/start_maro_geo_vis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def start_geo_vis(start: str, experiment_name: str, front_end_port: int, **kwarg
1717
grader_path = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
1818
if start == 'database':
1919

20-
# Start the databse container.
20+
# Start the database container.
2121
database_start_path = f"{grader_path}/streamit/server"
2222
subprocess.check_call(
2323
'sh run_docker.sh',

maro/data_lib/cim/cim_data_container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ def reachable_stops(self) -> VesselReachableStopsWrapper:
213213

214214
@property
215215
def vessel_period(self) -> int:
216-
"""Wrapper to get vessel's planed sailing period (without noise to complete a whole route).
216+
"""Wrapper to get vessel's planned sailing period (without noise to complete a whole route).
217217
218218
Examples:
219219
220220
.. code-block:: python
221221
222-
# Get planed sailing for vessel 0.
222+
# Get planned sailing for vessel 0.
223223
period = data_cntr.vessel_period[0]
224224
"""
225225
return self._data_collection.vessel_period_without_noise

maro/simulator/scenarios/cim/matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GeneralInfoMatrix(NodeBase):
2323
full_on_ports = NodeAttribute("i", slot_num=port_num * port_num)
2424
# distribution of full from vessel to port
2525
full_on_vessels = NodeAttribute("i", slot_num=vessel_num * port_num)
26-
# planed route info for vessels
26+
# planned route info for vessels
2727
vessel_plans = NodeAttribute("i", slot_num=vessel_num * port_num)
2828

2929
def __init__(self):

tests/test_event_buffer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def test_event_dispatch(self):
4545
def cb(evt):
4646
# test event tick
4747
self.assertEqual(
48-
1, evt.tick, msg="recieved event tick should be 1")
48+
1, evt.tick, msg="received event tick should be 1")
4949

5050
# test event payload
5151
self.assertTupleEqual(
52-
(1, 3), evt.payload, msg="recieved event's payload should be (1, 3)")
52+
(1, 3), evt.payload, msg="received event's payload should be (1, 3)")
5353

5454
evt = self.eb.gen_atom_event(1, 1, (1, 3))
5555

@@ -142,7 +142,7 @@ def test_sub_events_with_decision(self):
142142
self.assertEqual(1, len(decision_events))
143143
self.assertEqual(evt1, decision_events[0])
144144

145-
# mark decision event as executing to make it process folloing events
145+
# mark decision event as executing to make it process following events
146146
decision_events[0].state = EventState.FINISHED
147147

148148
# then there will be 2 additional decision event from sub events

tests/test_snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_slice_quering(self):
147147
self.assertListEqual(list(states[0].astype("i")), [100 * i + 1 for i in range(
148148
len(frame.static_nodes))], msg="a2 at tick 1 for all nodes should be correct")
149149

150-
# 2nd row should be lastest one
150+
# 2nd row should be latest one
151151
self.assertEqual(
152152
1000, states[1][0], msg="a2 for 1st static node for 2nd row should be 1000")
153153

0 commit comments

Comments
 (0)