Skip to content

Commit

Permalink
merged and resolved the conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
NMoghaddam committed Sep 20, 2021
2 parents 689acab + f80e458 commit 469c7c0
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ numexpr
numpy
scipy
# gdal==`gdal-config --version`
pytz==2020.1
pandas

1 change: 1 addition & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import unittest

from utilities.convert import Converter, create_sub_dirs_for_convert
from convert import Converter, create_sub_dirs_for_convert


class TestConverter(unittest.TestCase):
Expand Down
3 changes: 3 additions & 0 deletions tests/test_mpi_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
from utilities.convert import create_sub_dirs_for_convert
from utilities.mpi_runner import parallelise_convert_on_tiles
from utilities.parallel import attempt_parallel
from convert import create_sub_dirs_for_convert
from mpi_runner import parallelise_convert_on_tiles
from parallel import attempt_parallel


class TestMPIRunner(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions tests/test_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import numpy as np

from utilities.parallel import attempt_parallel
from parallel import attempt_parallel


class TestParallel(unittest.TestCase):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_topographic/test_multipliercalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import test_slope, test_escarp
from tests.test_topographic.test_all_topo_engineered_data \
import mh_engineered
from test_all_topo_engineered_data import test_slope, test_escarp
from test_all_topo_engineered_data import mh_engineered


class TestMultiplierCalc(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions utilities/blrb.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import numpy
import logging
from utilities.meta import print_call
from meta import print_call
import math

LOGGER = logging.getLogger('root.' + __name__)
Expand Down
1 change: 1 addition & 0 deletions utilities/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def process_tile(self, tile):
band = out_ds.GetRasterBand(band_index)
try:
band.WriteArray(multiplied.data[::-1])
band.WriteArray(multiplied.data)
except ValueError:
log.error("Mismatch between output file and data array")
log.error(multiplied.data.shape)
Expand Down
2 changes: 2 additions & 0 deletions utilities/mpi_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from utilities.convert import Converter, create_sub_dirs_for_convert
from utilities.parallel import attempt_parallel
from convert import Converter, create_sub_dirs_for_convert
from parallel import attempt_parallel


def parallelise_convert_on_tiles(data_path, comm):
Expand Down

0 comments on commit 469c7c0

Please sign in to comment.