def test_dtype_rescaling_uint8_half(tmpdir):
    outputname = str(tmpdir.join('test.tif'))
    runner = CliRunner()
    result = runner.invoke(convert, [
        'tests/data/RGB.byte.tif', outputname, '--scale-ratio', '0.5'])
    assert result.exit_code == 0
    with rasterio.open(outputname) as src:
        for band in src.read():
            assert round(band.min() - 0, 6) == 0.0
            assert round(band.max() - 127, 6) == 0.0
Callback for when the client sends a file to the experiment
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_convert.py/test_dtype_rescaling_uint8_half--crossover with--dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/experiments/robot_standard.py/RobotStandard.do_send_file_to_device