MCPcopy Create free account
hub / github.com/TransluceAI/observatory / get_nv

Function get_nv

project/monitor/monitor/server.py:128–141  ·  view source on GitHub ↗

Convert the saved session state into a NeuronView. May be slow because the NeuronView constructor recomputes activations.

(session_id: str)

Source from the content-addressed store, hash-verified

126
127
128def get_nv(session_id: str) -> NeuronView:
129 """
130 Convert the saved session state into a NeuronView.
131 May be slow because the NeuronView constructor recomputes activations.
132 """
133
134 if session_id not in SESSIONS:
135 raise HTTPException(status_code=404, detail="Session not found")
136
137 cc, filter = SESSIONS[session_id]
138 nv = NeuronView(SUBJECT, DB, cc, PERCENTILES_PLI)
139 if filter is not None:
140 nv.set_filter(filter)
141 return nv
142
143
144@asgi_app.post("/register")

Callers 3

send_message_sseFunction · 0.85
get_neurons_with_filterFunction · 0.85
linterFunction · 0.85

Calls 2

set_filterMethod · 0.95
NeuronViewClass · 0.90

Tested by

no test coverage detected