本文整理汇总了Python中peachyprinter.api.calibration_api.CalibrationAPI.show_point方法的典型用法代码示例。如果您正苦于以下问题:Python CalibrationAPI.show_point方法的具体用法?Python CalibrationAPI.show_point怎么用?Python CalibrationAPI.show_point使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类peachyprinter.api.calibration_api.CalibrationAPI
的用法示例。
在下文中一共展示了CalibrationAPI.show_point方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_show_point_should_replace_controllers_transformer
# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_point [as 别名]
def test_show_point_should_replace_controllers_transformer(self, *args):
self.setup_mocks(args)
self.mock_configuration_manager.load.return_value = self.default_config
calibration_api = CalibrationAPI(self.mock_configuration_manager)
calibration_api.show_test_pattern('Hilbert Space Filling Curve')
calibration_api.show_point()
self.mock_path_to_audio.set_transformer.assert_called_with(self.mock_tuning_transformer)
示例2: test_show_point_should_set_coordanates_on_Single_Point_Generator
# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_point [as 别名]
def test_show_point_should_set_coordanates_on_Single_Point_Generator(self, *args):
self.setup_mocks(args)
self.mock_configuration_manager.load.return_value = self.default_config
calibration_api = CalibrationAPI(self.mock_configuration_manager)
x, y, z = 1.0, 0.2, 1.0
calibration_api.show_point([x, y, z])
self.assertEquals([x, y], self.mock_single_point_generator.xy)
示例3: test_show_point_should_use_Single_Point_Generator
# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_point [as 别名]
def test_show_point_should_use_Single_Point_Generator(self, *args):
self.setup_mocks(args)
self.mock_configuration_manager.load.return_value = self.default_config
calibration_api = CalibrationAPI(self.mock_configuration_manager)
x, y, z = 1.0, 0.2, 1.0
calibration_api.show_line()
calibration_api.show_point([x, y, z])
self.mock_controller.change_generator.assert_called_with(self.mock_single_point_generator)