pyerrors/tests/input_test.ipynb
2022-01-16 16:46:59 +01:00

4.4 KiB

None <html> <head> </head>

This file is used for testing some of the input methods.

In [1]:
import os,sys,inspect
current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir) 

import pyerrors as pe
import pyerrors.input.openQCD as qcdin
import pyerrors.input.sfcf as sfin

First, we will have a look at the input method for the topological charge $Q_{top}$, which is measured by the program ms from the openQCD package. For now, this part still in the making and depends on an actual file. Later, this should be changed to a more efficient way of making a proper input file.

In [4]:
r_qtop = qcdin.read_qtop("../../test_data", prefix = "T29L20k0.13719",full = True, r_stop = [500,440,447,410])#, files = ["T29L20k0.13719r1.ms.dat"], )
['T29L20k0.13719r2.ms.dat', 'T29L20k0.13719r3.ms.dat', 'T29L20k0.13719r1.ms.dat', 'T29L20k0.13719r4.ms.dat']
dn: 10
nn: 60
tmax: 30
eps: 0.02
max_t: 12.0
t_aim: 6.125
index_aim: 31
T29L20k0.13719r2
dn: 10
nn: 60
tmax: 30
eps: 0.02
max_t: 12.0
t_aim: 6.125
index_aim: 31
T29L20k0.13719r3
dn: 10
nn: 60
tmax: 30
eps: 0.02
max_t: 12.0
t_aim: 6.125
index_aim: 31
T29L20k0.13719r1
dn: 10
nn: 60
tmax: 30
eps: 0.02
max_t: 12.0
t_aim: 6.125
index_aim: 31
T29L20k0.13719r4
In [5]:
print(r_qtop.shape)
#print(r_qtop.deltas['T29L20k0.13719|r1'])
for i in r_qtop.deltas['T29L20k0.13719|r2']:
    print(round(r_qtop.value + i), end =" ")
{'T29L20k0.13719|r1': 500, 'T29L20k0.13719|r2': 440, 'T29L20k0.13719|r3': 447, 'T29L20k0.13719|r4': 410}
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1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