Skip to content

Commit d47262d

Browse files
committed
fix signature type retrieval
1 parent 7aee0a8 commit d47262d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/python/pyodide.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@ export async function asyncRunScenario(
4444
export async function runScenario(scenario: string) {
4545
const pythonProgram = `
4646
import pyodide_http
47-
pyodide_http.patch_all()
47+
pyodide_http.patch_all()
4848
print(globals())
4949
from js import scenario_json
5050
import demoland_engine
5151
import json
5252
import time
53-
53+
5454
start = time.time()
5555
scenario = json.loads(scenario_json)
56-
57-
df = demoland_engine.get_empty()
56+
57+
df = demoland_engine.get_empty()
5858
5959
for oa_code, vals in scenario["scenario_json"].items():
6060
df.loc[oa_code] = list(vals.values())
6161
6262
pred = demoland_engine.get_indicators(df, random_seed=42)
63-
sig = demoland_engine.sampling.oa_key.primary_type.copy()
63+
sig = demoland_engine.data.FILEVAULT["oa_key"].primary_type.copy()
6464
6565
mapping = {
6666
"Wild countryside": 0,

0 commit comments

Comments
 (0)