pyNastran
0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
|
00001 ## GNU Lesser General Public License 00002 ## 00003 ## Program pyNastran - a python interface to NASTRAN files 00004 ## Copyright (C) 2011-2012 Steven Doyle, Al Danial 00005 ## 00006 ## Authors and copyright holders of pyNastran 00007 ## Steven Doyle <mesheb82@gmail.com> 00008 ## Al Danial <al.danial@gmail.com> 00009 ## 00010 ## This file is part of pyNastran. 00011 ## 00012 ## pyNastran is free software: you can redistribute it and/or modify 00013 ## it under the terms of the GNU Lesser General Public License as published by 00014 ## the Free Software Foundation, either version 3 of the License, or 00015 ## (at your option) any later version. 00016 ## 00017 ## pyNastran is distributed in the hope that it will be useful, 00018 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 ## GNU General Public License for more details. 00021 ## 00022 ## You should have received a copy of the GNU Lesser General Public License 00023 ## along with pyNastran. If not, see <http://www.gnu.org/licenses/>. 00024 ## 00025 # pylint: disable=C0103,R0902,R0904,R0914 00026 00027 from __future__ import division, print_function 00028 00029 from pyNastran.bdf.cards.baseCard import BaseCard 00030 00031 class PARAM(BaseCard): 00032 type = 'PARAM' 00033 def __init__(self, card): 00034 self.key = card.field(1) 00035 self.value = card.field(2) 00036 00037 #def isSameCard(self, param, debug=False): 00038 #fields1 = [self.key, self.value ] 00039 #fields2 = [param.key, param.value] 00040 #for (field1, field2) in izip(fields1, fields2): 00041 # if not self.isSame(field1, field2): 00042 # return False 00043 # ### 00044 #### 00045 #return True 00046 00047 def rawFields(self): 00048 fields = ['PARAM', self.key, self.value] 00049 return fields