diff --git a/simple_ortho/cli.py b/simple_ortho/cli.py index 2621f64..1d07c9b 100644 --- a/simple_ortho/cli.py +++ b/simple_ortho/cli.py @@ -89,7 +89,7 @@ def _configure_logging(verbosity: int): log_level = max(10, 20 - 10 * verbosity) # apply config to package logger, rather than root logger - pkg_logger = logging.getLogger(__package__) + pkg_logger = logging.getLogger('simple_ortho') formatter = PlainInfoFormatter() handler = logging.StreamHandler(sys.stderr) handler.setFormatter(formatter) diff --git a/tests/conftest.py b/tests/conftest.py index 2c05c20..768d9d5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -89,7 +89,7 @@ def create_dem( bounds = np.array(ortho_bounds(camera, include_camera=include_camera)) size = 1 + np.ceil((bounds[2:] - bounds[:2]) / resolution).astype('int') array = np.stack( - (sinusoidal(size[::-1]) * 250 + camera._T[2] - 200, np.ones(size[::-1]) * (250 / 2) + camera._T[2] - 200,), + (sinusoidal(size[::-1]) * 50 + camera._T[2] - 200, np.ones(size[::-1]) * (50 / 2) + camera._T[2] - 200,), axis=0 ).astype(dtype) # yapf: disable @@ -391,7 +391,7 @@ def float_utm34n_partial_dem_file(tmpdir_factory: pytest.TempdirFactory, pinhole """ filename = Path(tmpdir_factory.mktemp('data')).joinpath('float_utm34n_dem.tif') array, profile = create_dem(pinhole_camera, utm34n_crs, resolution=_dem_resolution, dtype='float32') - mask = np.tril(np.ones(array.shape, dtype='bool'), k=-1) + mask = np.fliplr(np.tril(np.ones(array.shape, dtype='bool'), k=1)) array[mask] = profile['nodata'] with rio.open(filename, 'w', **profile) as im: im.write(array)