diff options
author | deepa-chaudhari | 2015-06-09 18:51:42 +0530 |
---|---|---|
committer | deepa-chaudhari | 2015-06-09 18:51:42 +0530 |
commit | e76128ffa9619c6db5935ae773c915c32f7190e9 (patch) | |
tree | 10e0060afcf8bf34b46c8cda430fad6f4363e2f0 /Connections/Shear/Finplate/finplate_calc1.py | |
parent | 2d492db8cde02a6dce403d9ad2af9cb6dfa9c287 (diff) | |
download | OsdagLive-e76128ffa9619c6db5935ae773c915c32f7190e9.tar.gz OsdagLive-e76128ffa9619c6db5935ae773c915c32f7190e9.tar.bz2 OsdagLive-e76128ffa9619c6db5935ae773c915c32f7190e9.zip |
error handling for resultoutputObj
Diffstat (limited to 'Connections/Shear/Finplate/finplate_calc1.py')
-rw-r--r-- | Connections/Shear/Finplate/finplate_calc1.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Connections/Shear/Finplate/finplate_calc1.py b/Connections/Shear/Finplate/finplate_calc1.py index 140400f..1882156 100644 --- a/Connections/Shear/Finplate/finplate_calc1.py +++ b/Connections/Shear/Finplate/finplate_calc1.py @@ -401,12 +401,18 @@ def finConn(uiObj): if web_plate_l == min_plate_height or web_plate_l == max_plate_height or web_plate_l < web_plate_l_req or web_plate_w < web_plate_w_req: for k in outputObj.keys(): - for key in outputObj[k]: + for key in outputObj[k].keys(): outputObj[k][key] = "" elif moment_capacity < moment_demand: for k in outputObj.keys(): - for key in outputObj[k]: + for key in outputObj[k].keys(): outputObj[k][key] = "" +# if web_plate_l == min_plate_height or web_plate_l == max_plate_height or web_plate_l < web_plate_l_req or web_plate_w < web_plate_w_req: +# outputObj = {} +# +# elif moment_capacity < moment_demand: +# outputObj = {} + return outputObj |