mlz: fix delayed import of he3cell

Change-Id: Ia15693a11f9d1526b4a50be4adbad19640eafe93
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/34126
Reviewed-by: Alexander Zaft <a.zaft@fz-juelich.de>
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
This commit is contained in:
Alexander Zaft 2024-07-12 15:14:53 +02:00 committed by Markus Zolliker
parent fb5e468048
commit 177f49ca3f

View File

@ -33,7 +33,7 @@ from frappy.modules import Command, Drivable, Module, Parameter, Property, \
Readable Readable
from frappy.rwhandler import CommonReadHandler from frappy.rwhandler import CommonReadHandler
he3d = delayed_import('he3d') he3cell = delayed_import('he3d.he3cell')
integral = IntRange() integral = IntRange()
floating = FloatRange() floating = FloatRange()
@ -52,7 +52,7 @@ class Cell(Module):
def initModule(self): def initModule(self):
super().initModule() super().initModule()
self.cell = he3d.he3cell.He3_cell( self.cell = he3cell.He3_cell(
path.join(self.config_directory, 'cell.yml')) path.join(self.config_directory, 'cell.yml'))
# Commands # Commands