-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPSSDB.py
More file actions
55 lines (46 loc) · 1.57 KB
/
PSSDB.py
File metadata and controls
55 lines (46 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# DataBase.py ---
# --------------------------------
# Copyright (c) 2009
# Laurent CAPOCCHI
# University of Corsica
# --------------------------------
# Version 2.0 last modified: 28/04/09
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
#
# GENERAL NOTES AND REMARKS:
#
#
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
#
# GLOBAL VARIABLES AND FUNCTIONS:
#
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
try:
from DomainInterface.SDB import SDB
except ImportError :
import sys,os
for spath in [os.curdir+os.sep+'Lib']:
if not spath in sys.path: sys.path.append(spath)
from DomainInterface.SDB import SDB
class PSSDB(SDB):
'''
'''
###
def __init__(self, paramDico = {}):
''' Constructor
@param paramDico: Dictionary used for storage of the user parameters
'''
SDB.__init__(self)
# a essayer !
#for key in paramDico:
#exec "self." + key +'=paramDico[\''+key+'\']'
# user macro
self.VERBOSE = paramDico['VERBOSE']
self.FINAL_TIME = paramDico['FINAL_TIME']
self.FAULT_SIM = paramDico['FAULT_SIM']
self.WITH_COUPLED_SOLVER = paramDico['WITH_COUPLED_SOLVER']
def SetAttribut(self,name, value):
exec "self."+name+"="+str(value)