Ticket #140 (closed Defect: fixed)

Opened 6 years ago

Last modified 5 years ago

Find CoastWatch Images and Find Cayula-Cornillon Fronts as ArcGIS Rasters fails with message "TypeError: The pythonExpression parameter is required. Please provide a value."

Reported by: jjr8 Owned by: jjr8
Priority: Medium Milestone: 0.4
Component: Tools - Data Products - NOAA CoastWatch Version: 0.3
Keywords: Cc:

Description

Unless you specify all five Python expressions in Output raster name options, the Find CoastWatch Images and Find Cayula-Cornillon Fronts as ArcGIS Rasters tool fails with the message:

TypeError: The pythonExpression parameter is required. Please provide a value.

The problem is that the batch processing code erroneously assumes that expressions will be provided for each parameter. When an expression is not provided, the batch processing code ends up passing None for the pythonExpression parameter to Fields.CalculateField.

The one-line fix is to not call Fields.CalculateField if the expression is None.

Change History

Changed 5 years ago by jjr8

  • status changed from new to closed
  • resolution set to fixed

Fixed in MGET 0.4a3.

Note: See TracTickets for help on using tickets.