Skip to content

Commit 07b1345

Browse files
committed
bump version to 0.1.4; stop issuing warning about missing messages_sent
1 parent 30fbe0c commit 07b1345

File tree

5 files changed

+3
-20
lines changed

5 files changed

+3
-20
lines changed

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"codeRepository": "https://github.com/KarrLab/de_sim",
3434
"contIntegration": "https://circleci.com/gh/KarrLab/de_sim",
3535
"issueTracker": "https://github.com/KarrLab/de_sim/issues",
36-
"version": "0.1.3",
36+
"version": "0.1.4",
3737
"developmentStatus": "active",
3838
"datePublished": "2020-07-28",
3939
"dateCreated": "2019-01-20",

de_sim/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.3'
1+
__version__ = '0.1.4'

de_sim/simulation_object.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,6 @@ def __new__(cls, clsname, superclasses, namespace):
469469
elif not event_handlers:
470470
warnings.warn("SimulationObject '{}' definition does not inherit or provide a "
471471
"non-empty '{}'.".format(clsname, EVENT_HANDLERS))
472-
elif not messages_sent:
473-
warnings.warn("SimulationObject '{}' definition does not inherit or provide a "
474-
"non-empty '{}'.".format(clsname, MESSAGES_SENT))
475472

476473
if event_handlers:
477474
try:

joss_paper/paper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ DE-Sim is freely and openly available under the MIT license at the locations bel
109109
* Jupyter notebook tutorials: [https://sandbox.karrlab.org/tree/de_sim](https://sandbox.karrlab.org/tree/de_sim)
110110
* Documentation: [docs.karrlab.org](https://docs.karrlab.org/de_sim/)
111111

112-
DE-Sim requires [Python](https://www.python.org/) 3.7 or higher and [pip](https://pip.pypa.io/). This article discusses version 0.1.3 of DE-Sim.
112+
DE-Sim requires [Python](https://www.python.org/) 3.7 or higher and [pip](https://pip.pypa.io/). This article discusses version 0.1.4 of DE-Sim.
113113

114114
# Acknowledgements
115115

tests/test_simulation_object.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -181,20 +181,6 @@ class PartlyRegisteredSimulationObject1(SimulationObject):
181181
self.assertTrue(InitMsg in PartlyRegisteredSimulationObject1.metadata.message_types_sent)
182182
self.assertFalse(PartlyRegisteredSimulationObject1.metadata.event_handlers_dict)
183183

184-
# missing messages_sent
185-
with warnings.catch_warnings(record=True) as w:
186-
class PartlyRegisteredSimulationObject2(SimulationObject):
187-
event_handlers = [(InitMsg, 'handler')]
188-
189-
def handler(self):
190-
pass
191-
self.assertEqual(str(w[-1].message),
192-
"SimulationObject 'PartlyRegisteredSimulationObject2' definition does not inherit "
193-
"or provide a non-empty '{}'.".format(MESSAGES_SENT))
194-
self.assertTrue(InitMsg in PartlyRegisteredSimulationObject2.metadata.event_handlers_dict)
195-
self.assertEqual(PartlyRegisteredSimulationObject2.metadata.event_handlers_dict[InitMsg],
196-
PartlyRegisteredSimulationObject2.handler)
197-
198184

199185
class TestSimObjClassPriority(unittest.TestCase):
200186

0 commit comments

Comments
 (0)