Skip to content

Commit

Permalink
long_name added to signal class
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtitus committed Jul 15, 2024
1 parent 43ac00e commit 50a5362
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ophyd/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ def describe(self):
"source": "SIM:{}".format(self.name),
"dtype": data_type(val),
"shape": data_shape(val),
"long_name": self.long_name,
}
}
except ValueError as ve:
Expand Down Expand Up @@ -1491,6 +1492,7 @@ def describe(self):
units=self._metadata["units"],
lower_ctrl_limit=lower_ctrl_limit,
upper_ctrl_limit=upper_ctrl_limit,
long_name=self.long_name,
)

if self.precision is not None:
Expand Down Expand Up @@ -2271,6 +2273,7 @@ def describe(self):
"source": "PY:{}.{}".format(self.parent.name, self.full_attr),
"dtype": data_type(value),
"shape": data_shape(value),
"long_name": self.long_name
}
return {self.name: desc}

Expand Down

0 comments on commit 50a5362

Please sign in to comment.