Skip to content

Commit 0d89bdd

Browse files
committed
Added CGMS14 data providers.
1 parent 7409707 commit 0d89bdd

File tree

2 files changed

+229
-194
lines changed

2 files changed

+229
-194
lines changed

pcse/db/cgms11/data_providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def __init__(self, engine, grid_no, crop_no, campaign_year, campaign_start=None)
282282
msg = "Unsupported START_TYPE in CROP_CALENDAR table: %s" % row.start_type
283283
raise exc.PCSEError(msg)
284284

285-
# determine the campaign_start
285+
# determine the campaign_start_date
286286
if campaign_start is None:
287287
self.campaign_start_date = self.crop_start_date
288288
elif isinstance(campaign_start, (int, float)):
@@ -292,7 +292,7 @@ def __init__(self, engine, grid_no, crop_no, campaign_year, campaign_start=None)
292292
try:
293293
campaign_start = check_date(campaign_start)
294294
if campaign_start <= self.crop_start_date:
295-
self.campaign_start_date = self.crop_start_date
295+
self.campaign_start_date = campaign_start
296296
else:
297297
msg = "Date (%s) specified by keyword 'campaign_start' in call to AgroManagementDataProvider " \
298298
"is later then crop_start_date defined in the CGMS database."

0 commit comments

Comments
 (0)