Skip to content

Commit

Permalink
make paths relative to the root dir, switch to fully qualified import…
Browse files Browse the repository at this point in the history
… of bil_to_parquet functions
  • Loading branch information
erexer committed Dec 15, 2021
1 parent 74dd93d commit bb48b5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions mosartwmpy/utilities/bil_to_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@click.command()
@click.option(
'--grid-path',
default='../../input/domains/mosart.nc',
default='input/domains/mosart.nc',
type=click.Path(
file_okay=True,
dir_okay=False,
Expand All @@ -24,9 +24,7 @@
)
@click.option(
'--bil-elevation-path',
default=['../../input/elevation/na_dem_30s_bil/na_dem_30s.bil', '../../input/elevation/ca_dem_30s_bil/ca_dem_30s.bil'],
# default=['../../input/elevation/ca_dem_30s_bil/ca_dem_30s.bil'],
# default=['../../input/elevation/na_dem_30s_bil/na_dem_30s.bil'],
default=['input/elevation/na_dem_30s_bil/na_dem_30s.bil', 'input/elevation/ca_dem_30s_bil/ca_dem_30s.bil'],
multiple=True,
type=click.Path(
file_okay=True,
Expand All @@ -39,7 +37,7 @@
)
@click.option(
'--parquet-elevation-path',
default='../../input/elevation/na_dem_30s.parquet',
default='input/elevation/na_dem_30s.parquet',
type=click.Path(
file_okay=True,
dir_okay=False,
Expand Down
2 changes: 1 addition & 1 deletion mosartwmpy/utilities/test_bil_to_parquet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from affine import Affine
from dataclasses import dataclass
from bil_to_parquet import avg_resample, crop_to_domain, return_in_memory
from mosartwmpy.utilities.bil_to_parquet import avg_resample, crop_to_domain, return_in_memory
import numpy as np
from rasterio.crs import CRS
from shapely.geometry import box
Expand Down

0 comments on commit bb48b5f

Please sign in to comment.