Skip to content

Commit

Permalink
Change imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainv committed May 28, 2024
1 parent 9e0a139 commit f01215f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ jobs:
export C_INCLUDE_PATH=/usr/include/gdal
python -m pip install gdal==$(gdal-config --version)
python -m pip install -r requirements.txt
# Development mode for pytest to work
python -m pip install -e .
python -m pip install .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
3 changes: 2 additions & 1 deletion docsrc/notebooks/large_country/large_country.org
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ We initialize Google Earth Engine.
#+begin_src python
# Initialize GEE
ee.Initialize(project="forestatrisk",
opt_url="https://earthengine-highvolume.googleapis.com")
opt_url=("https://earthengine-highvolume."
"googleapis.com"))
#+end_src

#+RESULTS:
Expand Down
13 changes: 8 additions & 5 deletions geefcc/get_fcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import multiprocessing as mp

from .get_extent_from_aoi import get_extent_from_aoi
from .misc import make_dir
from .misc.miscellaneous import make_dir
from .make_grid import make_grid, grid_intersection
from .geeic2geotiff import geeic2geotiff
from .geotiff_from_tiles import geotiff_from_tiles
Expand Down Expand Up @@ -51,13 +51,16 @@ def get_fcc(aoi,
:param tile_size: Tile size for parallel computing.
:param ncpu: Number of CPU to use for parallel computing.
:param ncpu: Number of CPU to use for parallel computing. If None,
it will be set to the number of cores on the computer minus
one.
:param crop_to_aoi: Crop the raster GeoTIFF file to aoi. If False,
the output file will match the grid covering the aoi with buffer.
the output file will match the grid covering the aoi with
buffer.
:param output_file: Path to output GeoTIFF file. If directories in path
do not exist they will be created.
:param output_file: Path to output GeoTIFF file. If directories in
path do not exist they will be created.
"""

Expand Down
3 changes: 0 additions & 3 deletions geefcc/misc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
"""Accessing miscellaneous functions."""

from .miscellaneous import make_dir, makeblock, progress_bar

# End
2 changes: 1 addition & 1 deletion geefcc/sum_raster_bands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
from osgeo import gdal

from .misc import progress_bar, makeblock
from .misc.miscellaneous import progress_bar, makeblock


def sum_raster_bands(input_file, output_file="sum.tif",
Expand Down

0 comments on commit f01215f

Please sign in to comment.