MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / _get_gpc_sim

Function _get_gpc_sim

pyxrf/gui_module/tests/test_wd_image_wizard.py:27–42  ·  view source on GitHub ↗

Simulated simplified 'GlobalProcessingClasses` class for testing

(maps_info_table)

Source from the content-addressed store, hash-verified

25
26
27def _get_gpc_sim(maps_info_table):
28 """Simulated simplified 'GlobalProcessingClasses` class for testing"""
29
30 class SimGlobalProcessingClasses:
31 def __init__(self):
32 self.range_table = copy.deepcopy(maps_info_table)
33 # Selection limit table may be the same
34 self.limit_table = copy.deepcopy(maps_info_table)
35 # Show status table
36 self.show_table = [[_[0], False] for _ in self.range_table]
37
38 def get_maps_info_table(self):
39 # TODO: implementation needed
40 return self.range_table, self.limit_table, self.show_table
41
42 return SimGlobalProcessingClasses()
43
44
45# fmt: off

Callers 1

test_WndImageWizard_1Function · 0.85

Calls 1

Tested by

no test coverage detected