Project

General

Profile

Task #21046

Document Handling custom placeholders in param overrides

Added by Vladimir Podstavkov 12 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
10/05/2018
Due date:
% Done:

100%

Estimated time:
Duration:

Description

POMS broke on a user supplied custom placeholder. See Requested Item RITM0735334.

........
I have a variable defined in my cfg:
[global]
testoutdir=/pnfs/sbnd/scratch/sbndpro/dropbox/pomstestjobs/mc/origin

I'd like to override this in my poms campaign stage a la:
-Ojob_output.dest = %(testoutdir)s

--------------
.......
File "/home/poms/current/poms/poms/webservice/TaskPOMS.py", line 764, in launch_jobs
"experiment": exp,
KeyError: 'testoutdir'

History

#1 Updated by Stephen White 12 months ago

  • Assignee set to Marc Mengel

#2 Updated by Marc Mengel 11 months ago

Double the percent sign, and put single quotes around it.

The doubled percent sign will escape it from the % formatting when POMS generates the command

The single quotes will keep the shell from whining about the parenthesis.

Then fife_launch should expand it from global.testoutdir.

#3 Updated by Marc Mengel 10 months ago

Converting this to a documentation issue:

We should mention that:

  • if you're using fife_wrap/fife_launch
  • you can define a name in the [globals] section:
    [globals]
    ...
    myvar=some_silly_thing
    
  • then you can use overrides with a doubled percent sign to refer to that variable in your config
    -Osubmit.dataset=%(dataset)s
    -Osection.value=%%(myvar)s
    

The single-percent is for a POMS defined value, and the double-percent one is for a value in your config.

#4 Updated by Marc Mengel 10 months ago

  • Status changed from New to Assigned
  • Assignee changed from Marc Mengel to Margherita Vittone Wiersma

Margherita,

Sending this to you, to try to squeeze into the documentation somewhere.

#5 Updated by Marc Mengel 8 months ago

  • Subject changed from Handle custom placeholders in param overrides to Document Handling custom placeholders in param overrides

#6 Updated by Stephen White 7 months ago

  • Target version changed from v4_1_0 to Doc v1_1

#7 Updated by Margherita Vittone Wiersma 5 months ago

  • % Done changed from 0 to 100
  • Status changed from Assigned to Resolved

This has been added under the Param Override information in the Campaign Stages section.

#8 Updated by Stephen White 5 months ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF