Project

General

Profile

Feature #21752

SAM Metadata fields include POMS campaign ID and submission ID?

Added by Yuyi Guo 10 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
01/23/2019
Due date:
% Done:

100%

Estimated time:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

Description

A analysis user asked below features from project-py, but this is real a POMS requirement.

" Ideally, a metadata field indicating some sort of POMS campaign ID and submission ID should be added to files declared to SAM. Users should be able to look up that POMS campaign and submission in the POMS Web UI and find all the related information such as FHiCL files used, dataset processed etc.
"

Please let me know how you answer his questions/requests.

History

#1 Updated by Marc Mengel 10 months ago

We have the facilities to add this, if users want, with fife_launch/fife_wrap in fife_utils; assuming they are having fife_wrap declare the files. They would need to first have a SAM admin for their experiment add a field for it:

    samweb add-parameter -e experiment POMS.CAMPAIGN_STAGE_ID int
    samweb add-parameter -e experiment POMS.SUBMISSION_ID int

then they can add in the fife_launch config:

...
[job_output]
...
add_metadata = POMS.CAMPAIGN_STAGE_ID=${POMS_CAMPAIGN_ID}
add_metadata_1 = POMS.SUBMISSION_ID=${POMS_TASK_ID}

Or, if they want to include this in their metadata in their code, they could also do that -- in the current release they can put $POMS_CAMPAIGN_ID from the environment in their metadata.

Note:
-----
In poms v4_1_0 there will be a better-named environment variables:
POMS4_CAMPAIGN_ID
POMS4_CAMPAIGN_STAGE_ID
POMS4_SUBMISSION_ID

#2 Updated by Marc Mengel 10 months ago

Fixed example -- should have been add_metadata_1 (with 2 underscores)...

#4 Updated by Yuyi Guo 10 months ago

  • % Done changed from 0 to 100

Marc,

Thanks for the reply. It is great that POMS already covered these.

#5 Updated by Yuyi Guo 5 months ago

This is required by Dune. We may need to separate templates for different experiments? I will ask Dune to add below in sam
```
samweb add-parameter -e experiment POMS.CAMPAIGN_STAGE_ID int
samweb add-parameter -e experiment POMS.SUBMISSION_ID int
```



Also available in: Atom PDF