Skip to content

Commit

Permalink
Remove calls to initialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Jan 31, 2024
1 parent cc5d31e commit f8ce800
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions examples/cpp-dummy/run_micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@

manager = MicroManager(args.config)

manager.initialize()

manager.solve()
4 changes: 1 addition & 3 deletions tests/unit/test_micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@ def test_micromanager_constructor(self):
self.assertDictEqual(self.fake_write_data_names, manager._write_data_names)
self.assertEqual(manager._micro_n_out, 10)

def test_initialize(self):
def test_initialization(self):
"""
Test if the initialize function of the MicroManager class initializes member variables to correct values
"""
manager = micro_manager.MicroManager('micro-manager-config.json')

manager.initialize()

self.assertEqual(manager._dt, 0.1) # from Interface.initialize
self.assertEqual(manager._global_number_of_sims, 4)
self.assertListEqual(manager._macro_bounds, self.macro_bounds)
Expand Down

0 comments on commit f8ce800

Please sign in to comment.