Skip to content

Commit

Permalink
fix: fix typo spelling code commented and data_model.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
slowy07 authored and Jinyu-W committed Jul 29, 2021
1 parent 665a9aa commit c73d73b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/source/key_components/data_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ the backend language for improving the execution reference. What's more,
the backend store is a pluggable design, user can choose different backend
implementation based on their real performance requirement and device limitation.

Currenty there are two data model backend implementation: static and dynamic.
Currently there are two data model backend implementation: static and dynamic.
Static implementation used Numpy as its data store, do not support dynamic
attribute length, the advance of this version is that its memory size is same as its
declaration.
Expand Down
2 changes: 1 addition & 1 deletion maro/cli/envs/list_available.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def list_available():
# maro env list
def list_scenarios(**kwargs):
"""
Show all avaiable scenarios
Show all available scenarios
"""

for scenario in get_scenarios():
Expand Down
2 changes: 1 addition & 1 deletion maro/cli/maro_real_time_vis/start_maro_geo_vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def start_geo_vis(start: str, experiment_name: str, front_end_port: int, **kwarg
grader_path = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
if start == 'database':

# Start the databse container.
# Start the database container.
database_start_path = f"{grader_path}/streamit/server"
subprocess.check_call(
'sh run_docker.sh',
Expand Down
4 changes: 2 additions & 2 deletions maro/data_lib/cim/cim_data_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ def reachable_stops(self) -> VesselReachableStopsWrapper:

@property
def vessel_period(self) -> int:
"""Wrapper to get vessel's planed sailing period (without noise to complete a whole route).
"""Wrapper to get vessel's planned sailing period (without noise to complete a whole route).
Examples:
.. code-block:: python
# Get planed sailing for vessel 0.
# Get planned sailing for vessel 0.
period = data_cntr.vessel_period[0]
"""
return self._data_collection.vessel_period_without_noise
Expand Down
2 changes: 1 addition & 1 deletion maro/simulator/scenarios/cim/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class GeneralInfoMatrix(NodeBase):
full_on_ports = NodeAttribute("i", slot_num=port_num * port_num)
# distribution of full from vessel to port
full_on_vessels = NodeAttribute("i", slot_num=vessel_num * port_num)
# planed route info for vessels
# planned route info for vessels
vessel_plans = NodeAttribute("i", slot_num=vessel_num * port_num)

def __init__(self):
Expand Down
6 changes: 3 additions & 3 deletions tests/test_event_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def test_event_dispatch(self):
def cb(evt):
# test event tick
self.assertEqual(
1, evt.tick, msg="recieved event tick should be 1")
1, evt.tick, msg="received event tick should be 1")

# test event payload
self.assertTupleEqual(
(1, 3), evt.payload, msg="recieved event's payload should be (1, 3)")
(1, 3), evt.payload, msg="received event's payload should be (1, 3)")

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

Expand Down Expand Up @@ -142,7 +142,7 @@ def test_sub_events_with_decision(self):
self.assertEqual(1, len(decision_events))
self.assertEqual(evt1, decision_events[0])

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

# then there will be 2 additional decision event from sub events
Expand Down
2 changes: 1 addition & 1 deletion tests/test_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def test_slice_quering(self):
self.assertListEqual(list(states[0].astype("i")), [100 * i + 1 for i in range(
len(frame.static_nodes))], msg="a2 at tick 1 for all nodes should be correct")

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

Expand Down

0 comments on commit c73d73b

Please sign in to comment.