Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
added some more print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcd-mscb committed Sep 23, 2019
1 parent 94225dc commit e53b688
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/fponhm.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def initialize(self, iptpath, optpath, weights_file, type=None, days=None,
print(os.getcwd())
os.chdir(self.iptpath)
print(os.getcwd())
print(f'start_date: {self.start_date} and end_date: {self.end_date}')
# glob.glob produces different results on Win and Linux. Adding sorted makes result consistent
filenames = sorted(glob.glob('*.shp'))
self.gdf = pd.concat([gpd.read_file(f) for f in filenames], sort=True).pipe(gpd.GeoDataFrame)
Expand Down Expand Up @@ -269,9 +270,11 @@ def initialize(self, iptpath, optpath, weights_file, type=None, days=None,
self.latshape = ts['lat']

# if self.type == 'days':
print(f'Gridmet returned days = {self.dayshape} and expected number of days {self.numdays}')
if self.dayshape == self.numdays:
return True
else:
print('returned and expected days not equal')
return False
# else:
# if self.dayshape == self.numdays:
Expand Down

0 comments on commit e53b688

Please sign in to comment.