Skip to content

Commit

Permalink
Undo that, didn't seem to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobson committed Mar 19, 2024
1 parent af58539 commit e4a38e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 1 addition & 8 deletions swmmanywhere/geospatial_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import json
import math
import operator
import os
from copy import deepcopy
from functools import lru_cache
from pathlib import Path
Expand All @@ -21,6 +20,7 @@
import numpy as np
import pandas as pd
import pyproj
import pysheds
import rasterio as rst
import rioxarray
from pysheds import grid as pgrid
Expand All @@ -31,13 +31,6 @@
from shapely.strtree import STRtree
from tqdm import tqdm

# Set the number of threads to 1 to avoid conflicts with parallel processing
# for pysheds (at least I think that is what is happening)
os.environ['NUMBA_NUM_THREADS'] = '1'
os.environ['OMP_NUM_THREADS'] = '1'

import pysheds # noqa: E402

TransformerFromCRS = lru_cache(pyproj.transformer.Transformer.from_crs)

def get_utm_epsg(x: float,
Expand Down
11 changes: 8 additions & 3 deletions swmmanywhere/paper/experimenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@
import pandas as pd
from SALib.sample import sobol

from swmmanywhere import swmmanywhere
from swmmanywhere.logging import logger
from swmmanywhere.parameters import FilePaths, get_full_parameters_flat
# Set the number of threads to 1 to avoid conflicts with parallel processing
# for pysheds (at least I think that is what is happening)
os.environ['NUMBA_NUM_THREADS'] = '1'
os.environ['OMP_NUM_THREADS'] = '1'

from swmmanywhere import swmmanywhere # noqa: E402
from swmmanywhere.logging import logger # noqa: E402
from swmmanywhere.parameters import FilePaths, get_full_parameters_flat # noqa: E402

os.environ['SWMMANYWHERE_VERBOSE'] = "true"

Expand Down

0 comments on commit e4a38e5

Please sign in to comment.