当前位置: 首页>>代码示例>>Python>>正文


Python CalibrationAPI.show_line方法代码示例

本文整理汇总了Python中peachyprinter.api.calibration_api.CalibrationAPI.show_line方法的典型用法代码示例。如果您正苦于以下问题:Python CalibrationAPI.show_line方法的具体用法?Python CalibrationAPI.show_line怎么用?Python CalibrationAPI.show_line使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在peachyprinter.api.calibration_api.CalibrationAPI的用法示例。


在下文中一共展示了CalibrationAPI.show_line方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_show_line_should_use_CalibrationLineGenerator

# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_line [as 别名]
    def test_show_line_should_use_CalibrationLineGenerator(self, mock_CalibrationLineGenerator, *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_line()

        self.mock_controller.change_generator.assert_called_with(self.mock_calibration_line_generator)
开发者ID:BenBlumer,项目名称:peachyprintertools,代码行数:11,代码来源:calibration_api_test.py

示例2: test_show_line_should_replace_controllers_transformer

# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_line [as 别名]
    def test_show_line_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_line()

        self.mock_TuningTransformer.assert_called_with(scale=self.default_config.calibration.max_deflection)
        self.mock_path_to_audio.set_transformer.assert_called_with(self.mock_tuning_transformer)
开发者ID:BenBlumer,项目名称:peachyprintertools,代码行数:12,代码来源:calibration_api_test.py

示例3: test_show_blink_should_use_blink_Generator

# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_line [as 别名]
    def test_show_blink_should_use_blink_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_blink([x, y, z])

        self.mock_controller.change_generator.assert_called_with(self.mock_blink_generator)
开发者ID:BenBlumer,项目名称:peachyprintertools,代码行数:13,代码来源:calibration_api_test.py


注:本文中的peachyprinter.api.calibration_api.CalibrationAPI.show_line方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。