fix some bugs

This commit is contained in:
ColsonZhang 2021-04-01 13:20:55 +08:00
parent e73355a509
commit 60b74ab0be
5 changed files with 15 additions and 9 deletions

View File

@ -67,6 +67,7 @@ app.py ----服务器的主程序
* bug移动整体电路时电路连线无法一起移动 * bug移动整体电路时电路连线无法一起移动
* bugPIN POUT暂时无作用 * bugPIN POUT暂时无作用
* to do:主页面取消跳转采用判定是否登录的方法改写login logou * to do:主页面取消跳转采用判定是否登录的方法改写login logou
* fix当仿真失败时会提醒用户Fail
* 2021年3月31日前后端更新 * 2021年3月31日前后端更新
* 新增在服务器上成功部署后端代码为适配centos服务器而做了一些修改。 * 新增在服务器上成功部署后端代码为适配centos服务器而做了一些修改。

View File

@ -1,3 +1,3 @@
BSIM3V3.1 Parameter Check BSIM3V3.1 Parameter Check
Model = cmosn_180nm Model = cmosp_180nm
W = 2e-05, L = 1e-06 W = 2e-05, L = 1e-06

View File

@ -52,14 +52,17 @@ class SimulationHandler(AuthBaseHandler):
Container_SimResult.load_analysis(sim_type,analysis) Container_SimResult.load_analysis(sim_type,analysis)
print('data container load data successfully!! ') print('data container load data successfully!! ')
message = "Simulation: Success \n" message = "Simulation: Success \n"
except:
message = "Simulation: Fail \n"
message += "Sim_Type="+ sim_type + "\n Properties=" +properties_str message += "Sim_Type="+ sim_type + "\n Properties=" +properties_str
Mongo.connect(DataBase='example',Collection=username) Mongo.connect(DataBase='example',Collection=username)
Mongo.update(behavior=message,tags='simulation',spice=spice) Mongo.update(behavior=message,tags='simulation',spice=spice)
self.write("success") self.write("success")
except:
message = "Simulation: Fail \n"
message += "Sim_Type="+ sim_type + "\n Properties=" +properties_str
Mongo.connect(DataBase='example',Collection=username)
Mongo.update(behavior=message,tags='simulation',spice=spice)
self.write("Fail! 请检查电路元件!!!元件名字是否有重复?")
# 将properties 从字符串类型解析出来 # 将properties 从字符串类型解析出来

View File

@ -223,10 +223,12 @@
// create a window // create a window
// var lorem_1 = "Welcom to use CZ_SPICE,here is the user help manual !"; // var lorem_1 = "Welcom to use CZ_SPICE,here is the user help manual !";
// var lorem_2 = "To be continued......"; // var lorem_2 = "To be continued......";
var attention_head = "注意事项:"; var attention_head = "注意事项(请务必阅读!!!):";
var attention_body = ["1.当前系统不会自动更新元件名当引用多个相同元件时请在执行仿真前仔细检查元件的名字是否有重复如有重复请自行在属性中修改元件名。Vdd和Gnd除外", var attention_body = ["1.当前系统不会自动更新元件名当引用多个相同元件时请在执行仿真前仔细检查元件的名字是否有重复如有重复请自行在属性中修改元件名。Vdd和Gnd除外元件名字重复的情况下,仿真会失败!!!",
"2.由于在后台CMOS器件统一使用了180nm的工艺库文件所以请不要修改CMOS器件的MODEL。另外请注意180nm工艺库下的电源电压为3.3V", "2.由于在后台CMOS器件统一使用了180nm的工艺库文件所以请不要修改CMOS器件的MODEL。另外请注意180nm工艺库下的电源电压为3.3V",
"3.系统尚不成熟如遇bug可以将bug的相关情况发送到colson_zhang@foxmail.com。"]; "3.当在属性中修改元件名后,显示界面可能不会立即更新新名字,移动元件即可更新。不移动元件也不会对仿真有影响",
"4.绘制结果时请先点击Refresh来更新仿真杰作然后再点击Plot进行绘图。当前绘图界面会把所有节点的电压数据绘制出来。更加灵活的可以选择节点的绘图功能将在后续添加。",
"5.系统尚不成熟如遇bug可以将bug的相关情况发送到colson_zhang@foxmail.com。"];
var content = document.createElement('div'); var content = document.createElement('div');