rivm-syso / OURS

Dutch calculation method for railway vibrations
European Union Public License 1.2
3 stars 2 forks source link

Floorspan not used in building model #12

Open ArnaudYK opened 1 year ago

ArnaudYK commented 1 year ago

The floorspan is not used by the building module. In the next release this will be fixed. A temporary workaround is to alter the code in Hgebouw.py.

Change:

if "vloerOverspanning" in Gebouw:
    vloerOverspanning     = np.array(Vloer["vloerOverspanning"]); 
    var_vloerOverspanning = np.array(Vloer["var_vloerOverspanning"]); 
else:
    vloerOverspanning = [];

into:

if "vloerOverspanning" in Vloer:
    vloerOverspanning     = np.array(Vloer["vloerOverspanning"]); 
    if "var_vloerOverspanning" in Vloer:
        var_vloerOverspanning = np.array(Vloer["var_vloerOverspanning"]);
    else:
        var_vloerOverspanning=[]
else:
    vloerOverspanning = [];