diff --git a/README.md b/README.md index 51db2f3..f0ea81b 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ app.py ----服务器的主程序 * bug:移动整体电路时,电路连线无法一起移动 * bug:PIN POUT暂时无作用 * to do:主页面取消跳转,采用判定是否登录的方法改写login logou + * fix:当仿真失败时,会提醒用户Fail * 2021年3月31日,前后端更新 * 新增:在服务器上成功部署;后端代码为适配centos服务器而做了一些修改。 diff --git a/b3v3_1check.log b/b3v3_1check.log index 2aaa01d..0b93d3a 100644 --- a/b3v3_1check.log +++ b/b3v3_1check.log @@ -1,3 +1,3 @@ BSIM3V3.1 Parameter Check -Model = cmosn_180nm +Model = cmosp_180nm W = 2e-05, L = 1e-06 diff --git a/handler/__pycache__/spice.cpython-36.pyc b/handler/__pycache__/spice.cpython-36.pyc index 0d0a42d..0136e30 100644 Binary files a/handler/__pycache__/spice.cpython-36.pyc and b/handler/__pycache__/spice.cpython-36.pyc differ diff --git a/handler/spice.py b/handler/spice.py index 96f10fb..3a379a6 100644 --- a/handler/spice.py +++ b/handler/spice.py @@ -52,14 +52,17 @@ class SimulationHandler(AuthBaseHandler): Container_SimResult.load_analysis(sim_type,analysis) print('data container load data successfully!! ') message = "Simulation: Success \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("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! 请检查电路元件!!!元件名字是否有重复?") - 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("success") # 将properties 从字符串类型解析出来 diff --git a/template/schematic/schematic.html b/template/schematic/schematic.html index 4f25bfa..43ac7ac 100644 --- a/template/schematic/schematic.html +++ b/template/schematic/schematic.html @@ -223,10 +223,12 @@ // create a window // var lorem_1 = "Welcom to use CZ_SPICE,here is the user help manual !"; // var lorem_2 = "To be continued......"; - var attention_head = "注意事项:"; - var attention_body = ["1.当前系统不会自动更新元件名,当引用多个相同元件时,请在执行仿真前仔细检查元件的名字是否有重复,如有重复请自行在属性中修改元件名。(Vdd和Gnd除外)", + var attention_head = "注意事项(请务必阅读!!!):"; + var attention_body = ["1.当前系统不会自动更新元件名,当引用多个相同元件时,请在执行仿真前仔细检查元件的名字是否有重复,如有重复请自行在属性中修改元件名。(Vdd和Gnd除外)元件名字重复的情况下,仿真会失败!!!", "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');