llama.serve.gui package¶
Tools related to the interactive status/results website maintained for the current LLAMA run.
-
llama.serve.gui.
gui_url
(obj, linktype=None)¶ Get a URL to the LLAMA GUI webpage running on this server. Use this to generate links to LLAMA
Run
,Event
, andFileHandler
webpages.- Parameters
obj (object) – A LLAMA object. If this is has a
rundir
attribute, try to find the run name that LLAMA GUI uses. If it also has aneventid
attribute, include that in the returned URL. If it also has aFILENAME
attribute, include that as well.linktype (str, optional) – Optionally manually specify the output type as
'run'
,'event'
, or'filehandler'
. Use this if you want to e.g. get a link to the webpage for anEvent
when providing aFileHandler
. Will not work ifobj
does not contain the data required to construct the requestedlinktype
(e.g.linktype='filehandler'
will fail ifobj
is aRun
).
- Returns
url – A URL linking to the LLAMA summary web page for the provided object.
- Return type
str
- Raises
ValueError – If the
rundir
for the provided object is not in a directory served byllama serve gui
, ifobj
has norundir
attribute, or if the requestedlinktype
cannot be constructed fromobj
.
Subpackages
Submodules