Skip to content

Commit

Permalink
Added pass statement to unfinished test in test_ops.py and removed ir…
Browse files Browse the repository at this point in the history
…relevant comment in ops.py
  • Loading branch information
nanglo123 committed Aug 16, 2023
1 parent dc4308d commit 86235d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions mira/modeling/askenet/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ def replace_state_id(tm, old_id, new_id):
@amr_to_mira
def replace_transition_id(tm, old_id, new_id):
"""Replace the ID of a transition."""

# Currently, transition ids are listed as 'inf' for infection and 'rec' for recovery and not using state ids
# Change any mention of a old state id in transitions to new state_id
for template in tm.templates:
if template.name == old_id:
template.name = new_id
Expand Down
3 changes: 2 additions & 1 deletion tests/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class TestOperations(unittest.TestCase):
"""A test case for operations on template models."""

def test_replace_observable_id(self):

pass

def test_replace_transition_id(self):
old_id = 'inf'
new_id = 'new_inf'
Expand Down

0 comments on commit 86235d2

Please sign in to comment.