Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ def read_config(self):

# Read in the temperature downscaling options.
# Create temporary array to hold flags of if we need input parameter files.
param_flag = np.empty([len(self.input_forcings)], np.int)
param_flag = np.empty([len(self.input_forcings)], int)
param_flag[:] = 0
try:
self.t2dDownscaleOpt = json.loads(config['Downscaling']['TemperatureDownscaling'])
Expand Down
6 changes: 3 additions & 3 deletions core/disaggregateMod.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def ext_ana_disaggregate(input_forcings, supplemental_precip, config_options, mp

ana_sum = np.array([],dtype=np.float32)
target_data = np.array([],dtype=np.float32)
ana_all_zeros = np.array([],dtype=np.bool)
ana_no_zeros = np.array([],dtype=np.bool)
target_data_no_zeros = np.array([],dtype=np.bool)
ana_all_zeros = np.array([],dtype=bool)
ana_no_zeros = np.array([],dtype=bool)
target_data_no_zeros = np.array([],dtype=bool)
if mpi_config.rank == 0:
config_options.statusMsg = f"Performing hourly disaggregation of {supplemental_precip.file_in2}"
err_handler.log_msg(config_options, mpi_config)
Expand Down
6 changes: 3 additions & 3 deletions core/downscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,9 @@ def TOPO_RAD_ADJ_DRVR(GeoMetaWrfHydro,input_forcings,COSZEN,declin,solcon,hrang2

COSZEN[np.where(COSZEN < 1E-4)] = 1E-4

corr_frac = np.empty([ny, nx], np.int)
# shadow_mask = np.empty([ny,nx],np.int)
diffuse_frac = np.empty([ny, nx], np.int)
corr_frac = np.empty([ny, nx], int)
# shadow_mask = np.empty([ny,nx],int)
diffuse_frac = np.empty([ny, nx], int)
corr_frac[:, :] = 0
diffuse_frac[:, :] = 0
# shadow_mask[:,:] = 0
Expand Down
2 changes: 1 addition & 1 deletion core/geoMod.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import math

import ESMF
import esmpy as ESMF
import numpy as np
from netCDF4 import Dataset

Expand Down
4 changes: 2 additions & 2 deletions core/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def scatter_array_scatterv_no_cache(self,geoMeta,src_array,ConfigOptions):
data_type_flag = 1
if src_array.dtype == np.float64:
data_type_flag = 2
if src_array.dtype == np.bool:
if src_array.dtype == bool:
data_type_flag = 3

# Broadcast the data_type_flag to other processors
Expand Down Expand Up @@ -206,7 +206,7 @@ def scatter_array_scatterv_no_cache(self,geoMeta,src_array,ConfigOptions):
recvbuf=np.empty([counts[self.rank]],np.float32)
elif data_type_flag == 3:
data_type = MPI.BOOL
recvbuf = np.empty([counts[self.rank]], np.bool)
recvbuf = np.empty([counts[self.rank]], bool)
else:
data_type = MPI.DOUBLE
recvbuf = np.empty([counts[self.rank]], np.float64)
Expand Down
2 changes: 1 addition & 1 deletion core/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import traceback
import time

import ESMF
import esmpy as ESMF
import numpy as np

from core import err_handler
Expand Down
2 changes: 1 addition & 1 deletion genForcing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
import os

import ESMF
import esmpy as ESMF

from core import config
from core import err_handler
Expand Down