Skip to content

Commit 5f8eb0c

Browse files
author
Jack Doughty
committed
Defines get inst full name in sim mode
1 parent 90e6b3a commit 5f8eb0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/genie_python/genie_simulate_impl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from builtins import object, str
77
from collections import OrderedDict
88
from typing import TYPE_CHECKING, Callable
9+
import socket
910

1011
import numpy as np
1112
import numpy.typing as npt
@@ -1263,3 +1264,6 @@ def get_alarm_from_block(self, block: str) -> str:
12631264

12641265
def get_block_units(self, block: str) -> str:
12651266
return "mm"
1267+
1268+
def get_instrument_full_name(self) -> str:
1269+
return socket.gethostname()

0 commit comments

Comments
 (0)