Commit d47262d 1 parent 7aee0a8 commit d47262d Copy full SHA for d47262d
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,23 +44,23 @@ export async function asyncRunScenario(
44
44
export async function runScenario ( scenario : string ) {
45
45
const pythonProgram = `
46
46
import pyodide_http
47
- pyodide_http.patch_all()
47
+ pyodide_http.patch_all()
48
48
print(globals())
49
49
from js import scenario_json
50
50
import demoland_engine
51
51
import json
52
52
import time
53
-
53
+
54
54
start = time.time()
55
55
scenario = json.loads(scenario_json)
56
-
57
- df = demoland_engine.get_empty()
56
+
57
+ df = demoland_engine.get_empty()
58
58
59
59
for oa_code, vals in scenario["scenario_json"].items():
60
60
df.loc[oa_code] = list(vals.values())
61
61
62
62
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()
64
64
65
65
mapping = {
66
66
"Wild countryside": 0,
You can’t perform that action at this time.
0 commit comments