MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_csv_dump

Method test_csv_dump

tests/utils/test_profiling.py:171–178  ·  view source on GitHub ↗

Test dumping the results to csv file in a local StringIO object.

(self)

Source from the content-addressed store, hash-verified

169 self.assertIsInstance(df, pd.DataFrame)
170
171 def test_csv_dump(self):
172 """Test dumping the results to csv file in a local StringIO object."""
173 with WorkflowProfiler() as wp:
174 self.scale(self.test_image)
175
176 sio = StringIO()
177 wp.dump_csv(sio)
178 self.assertGreater(sio.tell(), 0)
179
180 @SkipIfNoModule("ignite")
181 def test_handler(self):

Callers

nothing calls this directly

Calls 2

WorkflowProfilerClass · 0.90
dump_csvMethod · 0.80

Tested by

no test coverage detected