add new task       

Task ID:  4156  Cotton does not take parameters for Harvest or Kill_Crop events    
Created by joh491 on 2016-05-06 9:09 AM, 1017 days ago
Project:  Module Code
Category:  Bug
Priority:  [no priority]
Assigned to:  joh491  
Status:  re-opened
Apsim Version:7.8
Your Name:
Contact Details:

show inline images      show change history

 comment 40386 posted by joh491 on 2016-05-10 2:09 PM, 1013 days ago 

Cotton needs to raise a warning or an error if it is passed a parameter that it is not coded to handle as expected, rather than just silently ignoring it. (Request by John Hargreaves).

 comment 40383 posted by joh491 on 2016-05-06 4:56 PM, 1017 days ago 

Cotton enhanced to accept HarvestType parameters and KillCropType parameters.  Currently it does nothing with them, but it does not throw an error.

Also revised some report property names for clarity:

NUptake --> nuptake_daily

nuptake  -->  nuptake_total

totnup  -->  nuptake_total

uptakn  -->  nuptake_potential


 comment 40378 posted by joh491 on 2016-05-06 9:09 AM, 1017 days ago 

Cotton throws an error if Manager 2 script tries to call harvest with HarvestType parameters passed. Similar problem for Kill_Crop.