mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-30 08:49:28 +02:00
Npr_matrix class added
This commit is contained in:
parent
5e98c89411
commit
207678513c
2 changed files with 94 additions and 6 deletions
|
@ -6,7 +6,7 @@ import h5py
|
|||
import numpy as np
|
||||
from ..pyerrors import Obs, CObs
|
||||
from ..correlators import Corr
|
||||
from ..npr import Propagator
|
||||
from ..npr import Npr_matrix
|
||||
|
||||
|
||||
def _get_files(path, filestem):
|
||||
|
@ -103,4 +103,4 @@ def read_ExternalLeg_hd5(path, filestem, ens_id, order='C'):
|
|||
matrix[si, sj, ci, cj] = CObs(real, imag)
|
||||
matrix[si, sj, ci, cj].gamma_method()
|
||||
|
||||
return Propagator(matrix.reshape((12,12), order=order), mom)
|
||||
return Npr_matrix(matrix.reshape((12,12), order=order), mom_in=mom)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue