analysis: fix symmetry group info
This commit is contained in:
parent
63f7f216b0
commit
54936ee722
|
@ -49,7 +49,8 @@ class FiniteRectLatAnalysis:
|
|||
meta = data['meta'][()]
|
||||
scatter = 'symmetry_adapted' in meta.keys()# finiterectlat-constant-driving ; TODO unify
|
||||
if scatter:
|
||||
thegroup = meta['symmetry_adapted']
|
||||
#thegroup = meta['symmetry_adapted'] # always D2h, this option does something else!
|
||||
thegroup = 'D2h'
|
||||
else: # finiterectlat-modes
|
||||
thegroup = 'D2h' if meta['D2'] else 'D4h'
|
||||
Nx, Ny = meta['size']
|
||||
|
@ -110,11 +111,13 @@ class FiniteRectLatAnalysis:
|
|||
self.Nx, self.Ny, self.px, self.py = Nx, Ny, px, py
|
||||
self.posmap = posmap
|
||||
self.fullvec_poffsets = nelem * np.arange(Nx*Ny)
|
||||
self.group = thegroup
|
||||
if scatter:
|
||||
self.typ = 'scatter'
|
||||
self.fvcs1_fromdata = data['fvcs1']
|
||||
self.iris1_fromdata = data['iris1']
|
||||
self.positions_fromdata = data['positions']
|
||||
self.driving_symmetry_adapted = data['symmetry_adapted']
|
||||
else: # modes
|
||||
self.typ = 'modes'
|
||||
self.eigval = data['eigval']
|
||||
|
|
Loading…
Reference in New Issue