Esempio n. 1
0
 def exitEdp_command(self, ctx:slatParser.Edp_commandContext):
     edp_id = ctx.ID(0).getText()
     im_id = ctx.ID(1).getText()
     fn_id = ctx.ID(2).getText()
     pyslat.edp(edp_id, pyslat.im.lookup(im_id), pyslat.probfn.lookup(fn_id))
Esempio n. 2
0
pyslat.MakeRecorder('imrate-lin-rec', 'imrate', IM1,
                    {'filename': ResultsFile("im_rate_lin")}, None, linvalues)

pyslat.MakeRecorder('collapse-rec', 'collapse', IM1,
                    {'filename': ResultsFile("collapse")}, None,
                    pyslat.linrange(0.01, 3.0, 199))

pyslat.MakeRecorder('collrate-rec', 'collrate', IM1,
                    {'filename': ResultsFile("collrate")}, None, None)

N_EDPS = 21

for i in range(1, N_EDPS + 1):
    pyslat.ImportProbFn("EDP_FUNC_{:>02}".format(i), "RB_EDP{}.csv".format(i))
    edp = pyslat.edp("EDP.{:>02}".format(i), IM1,
                     pyslat.probfn.lookup("EDP_FUNC_{:>02}".format(i)))

    pyslat.MakeRecorder('edpim-{:>02}'.format(i), 'edpim', edp,
                        {'filename': ResultsFile("im_edp_{}".format(i))},
                        ['mean_x', 'sd_ln_x'], linvalues)

    if i == 1:
        at = pyslat.logrange(0.032, 0.0325, 199)
    elif i == 2:
        at = pyslat.logrange(0.001, 0.10, 199)
    elif (i % 2) == 1:
        at = edpoddvalues
    else:
        at = edpevenvalues

    pyslat.MakeRecorder('edprate-{:>02}'.format(i), 'edprate', edp,
Esempio n. 3
0
 def exitEdp_command(self, ctx: slatParser.Edp_commandContext):
     edp_id = ctx.ID(0).getText()
     im_id = ctx.ID(1).getText()
     fn_id = ctx.ID(2).getText()
     pyslat.edp(edp_id, pyslat.im.lookup(im_id),
                pyslat.probfn.lookup(fn_id))
Esempio n. 4
0
pyslat.MakeRecorder("imrate-rec", "imrate", IM1, {"filename": ResultsFile("im_rate")}, None, imvalues)

pyslat.MakeRecorder("imrate-lin-rec", "imrate", IM1, {"filename": ResultsFile("im_rate_lin")}, None, linvalues)

pyslat.MakeRecorder(
    "collapse-rec", "collapse", IM1, {"filename": ResultsFile("collapse.txt")}, None, pyslat.linrange(0.01, 3.0, 199)
)

pyslat.MakeRecorder("collrate-rec", "collrate", IM1, {"filename": ResultsFile("collrate.txt")}, None, None)

N_EDPS = 21
DATA_DIR = "."

for i in range(1, N_EDPS + 1):
    pyslat.ImportProbFn("EDP_FUNC_{:>02}".format(i), "{}/RB_EDP{}.txt".format(DATA_DIR, i))
    edp = pyslat.edp("EDP.{:>02}".format(i), IM1, pyslat.probfn.lookup("EDP_FUNC_{:>02}".format(i)))

    pyslat.MakeRecorder(
        "edpim-{:>02}".format(i),
        "edpim",
        edp,
        {"filename": ResultsFile("im_edp_{}.txt".format(i))},
        ["mean_x", "sd_ln_x"],
        linvalues,
    )

    if i == 1:
        at = pyslat.logrange(0.032, 0.0325, 199)
    elif i == 2:
        at = pyslat.logrange(0.001, 0.10, 199)
    elif (i % 2) == 1: