Project

General

Profile

Bug #5332

XmlToPvlTranslationManager should allow two different values for InputPosition

Added by Kristin Berry about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
-
Impact:
Software Version:
Test Reviewer:

Description

The following translation group should work as follows: if the the values in the first InputPosition cannot be found,
the translator moves on to the next InputPosition and tries that, until it runs out of InputPositions to try, and then and only then, it will error out.

Group = CoreSamples
  Auto
  InputPosition  = (File_Area_Observational, Array_2D_Image, Axis_Array)
  InputPosition  = (File_Area_Observational, Array_3D_Image, Axis_Array)
  InputKeyDependencies   = "tag@axis_name|Sample"
  InputKey       = elements
  OutputName     = CoreSamples
  OutputPosition = (Group, Dimensions)
  Translation    = (*, *)
End_Group

Right now, it never moves beyond the first InputPosition if it can't find Array_2D_Image.

History

#1 Updated by Kristin Berry about 1 year ago

  • Category set to API

#2 Updated by Summer Stapleton about 1 year ago

  • Status changed from New to In Progress

#3 Updated by Summer Stapleton about 1 year ago

  • Status changed from In Progress to Resolved

Handled this by making use of an iterator to iterate through multiple instances of the "InputPosition" keyword.

#4 Updated by Kristin Berry about 1 year ago

  • Status changed from Resolved to Code Review

Thank you!

#5 Updated by Kristin Berry about 1 year ago

  • Status changed from Code Review to Closed

Also available in: Atom PDF