Commit a9bf6490 authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Session loading: set Trigo and SPP properties

parent 03d10f8a
......@@ -22,9 +22,9 @@ import { CourbeRemous } from "./remous/remous";
import { SectionParametree } from "./section/section_parametree";
import { Solveur } from "./solveur/solveur";
import { SolveurParams } from "./solveur/solveur_params";
import { SPP } from "./spp";
import { SPP, SPPOperation } from "./spp";
import { SPPParams } from "./spp_params";
import { Trigo } from "./trigo";
import { Trigo, TrigoOperation, TrigoUnit } from "./trigo";
import { TrigoParams } from "./trigo_params";
import { YAXB } from "./yaxb";
import { YAXBParams } from "./yaxb_params";
......@@ -122,6 +122,15 @@ export class Session {
case "regime":
res[k] = BiefRegime[res[k]];
break;
case "trigoOperation":
res[k] = TrigoOperation[res[k]];
break;
case "trigoUnit":
res[k] = TrigoUnit[res[k]];
break;
case "sppOperation":
res[k] = SPPOperation[res[k]];
break;
// "varCalc" is not an enum
// "inclinedApron" is not an enum
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment