コード例 #1
0
ファイル: cli.py プロジェクト: geissdoerfer/shepherd
def make(filename, output_path):
    cd = CalibrationData.from_measurements(filename)
    if output_path is None:
        print(repr(cd))
    else:
        with open(output_path, "w") as f:
            f.write(repr(cd))
コード例 #2
0
ファイル: test_calibration.py プロジェクト: orgua/shepherd
def test_from_measurements(data_meas_example_yml):
    calib = CalibrationData.from_measurements(data_meas_example_yml)