Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Wegmann committed Sep 10, 2024
1 parent 4153245 commit 1dc396f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/secop_ophyd/SECoPDevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,10 @@ async def generate_nexus_struct(self) -> str:
link_line = ""

if self.meaning is not None:
meaning:dict = self.meaning.get_value()
meaning:dict = await self.meaning.get_value()

if meaning.get('function'):
function:str = self.meaning.get_value().get('function')
function:str = await self.meaning.get_value().get('function')
measurement_line = f"\n\tmeasurement:NX_CHAR = {function}"

importance_line = f"\n\t\t@secop_importance:NX_INT32 = {meaning.get('importance')}" if meaning.get('importance') else ""
Expand Down

0 comments on commit 1dc396f

Please sign in to comment.