picongpu icon indicating copy to clipboard operation
picongpu copied to clipboard

tbg multiple openPMD output causes strange naming

Open PrometheusPi opened this issue 2 years ago • 4 comments

When calling openPMD-api multiple times within a *.cfg using tbg, the newly added --openPMD.infix is escaped from '_%T' to \'_%T\'. This not only leads to the single quotation marks being written to the output files but to additional double quotation marks around the entire files.

The naming is changed from simData_0.bp to "simDataEfield'_0'.bp".

The double openPMD-api call is given below:


TBG_openPMD_en="--openPMD.period 20000                         \
            --openPMD.file simDataElectrons                         \
            --openPMD.source en_all                        \
            --openPMD.ext bp                               \
            --openPMD.infix '_%T'                          "
#            --openPMD.dataPreparationStrategy mappedMemory "


TBG_openPMD_E="--openPMD.period 5000                         \
            --openPMD.file simDataEfield                         \
            --openPMD.source E                           \
            --openPMD.range 384,:,:                           \
            --openPMD.ext bp                               \
            --openPMD.infix '_%T'                          "
#            --openPMD.dataPreparationStrategy mappedMemory "


TBG_checkpoints=" --checkpoint.period 30000 "
#                  --checkpoint.openPMD.dataPreparationStrategy mappedMemory   "



TBG_plugins="!TBG_openPMD_en     !TBG_openPMD_E              \
             !TBG_checkpoints              \
             !TBG_sumEnergy                \
             !TBG_en_histogram             \
             !TBG_e_histogram              \
              --e_macroParticlesCount.period 100 \
              --en_macroParticlesCount.period 100"
              

After speaking with @psychocoderHPC offline, I will test removing the single quotation marks in the *.cfg and will remove the escape symbols in the submit.start.

PrometheusPi avatar Jan 04 '23 10:01 PrometheusPi

@PrometheusPi Any updates here?

steindev avatar Jul 18 '23 08:07 steindev

@steindev Thanks for reminding me. I will have a look at it again.

PrometheusPi avatar Jul 25 '23 16:07 PrometheusPi

How soon? 😉 😂

steindev avatar Oct 22 '23 18:10 steindev

later 😜

PrometheusPi avatar Oct 22 '23 21:10 PrometheusPi

solved by #4905

psychocoderHPC avatar May 16 '24 09:05 psychocoderHPC