프로젝트

일반

사용자정보

개정판 d21025cf

IDd21025cfbacba970fcf1dbf0d663e861a5c8a186
상위 ef530805
하위 24ea7edf

김연진이(가) 5년 이상 전에 추가함

issue #1054 스트림 데이타 입력 - 저장 시 형변환

Change-Id: Ia4438ab906ee8b883a3b3b527375b64c710f9ce7

차이점 보기:

HYTOS/HYTOS/HMBTable.py
87 87
    '''
88 88
    @stream_no.setter
89 89
    def stream_no(self, value):
90
        self._stream_no = value
90
        self._stream_no = int(value)
91 91

  
92 92
    @property
93 93
    def phase_type(self):
......
103 103

  
104 104
    @flowrate_mass.setter
105 105
    def flowrate_mass(self, value):
106
        self._flowrate_mass = value
106
        self._flowrate_mass = float(value)
107 107

  
108 108
    @property
109 109
    def flowrate_volume(self):
......
111 111

  
112 112
    @flowrate_volume.setter
113 113
    def flowrate_volume(self, value):
114
        self._flowrate_volume = value
114
        self._flowrate_volume = float(value)
115 115

  
116 116
    @property
117 117
    def density(self):
......
119 119

  
120 120
    @density.setter
121 121
    def density(self, value):
122
        self._density = value
122
        self._density = float(value)
123 123

  
124 124
    @property
125 125
    def viscosity(self):
......
127 127

  
128 128
    @viscosity.setter
129 129
    def viscosity(self, value):
130
        self._viscosity = value
130
        self._viscosity = float(value)
131 131

  
132 132
    @property
133 133
    def temperature(self):
......
135 135

  
136 136
    @temperature.setter
137 137
    def temperature(self, value):
138
        self._temperature = value
138
        self._temperature = float(value)
139 139

  
140 140
    @property
141 141
    def molecular_weight(self):
......
143 143

  
144 144
    @molecular_weight.setter
145 145
    def molecular_weight(self, value):
146
        self._molecular_weight = value
146
        self._molecular_weight = float(value)
147 147

  
148 148
    @property
149 149
    def specific_heat_ratio(self):
......
151 151

  
152 152
    @specific_heat_ratio.setter
153 153
    def specific_heat_ratio(self, value):
154
        self._specific_heat_ratio = value
154
        self._specific_heat_ratio = float(value)
155 155

  
156 156
    @property
157 157
    def compress_factor(self):
......
159 159

  
160 160
    @compress_factor.setter
161 161
    def compress_factor(self, value):
162
        self._compress_factor = value
162
        self._compress_factor = float(value)
163 163

  
164 164
    @property
165 165
    def nominal_pipe_size(self):
......
167 167

  
168 168
    @nominal_pipe_size.setter
169 169
    def nominal_pipe_size(self, value):
170
        self._nominal_pipe_size = value
170
        self._nominal_pipe_size = float(value)
171 171

  
172 172
    @property
173 173
    def inside_pipe_size(self):
......
175 175

  
176 176
    @inside_pipe_size.setter
177 177
    def inside_pipe_size(self, value):
178
        self._inside_pipe_size = value
178
        self._inside_pipe_size = float(value)
179 179

  
180 180
    @property
181 181
    def schedule_no(self):
......
191 191

  
192 192
    @straight_length.setter
193 193
    def straight_length(self, value):
194
        self._straight_length = value
194
        self._straight_length = float(value)
195 195

  
196 196
    @property
197 197
    def equivalent_length(self):
......
199 199

  
200 200
    @equivalent_length.setter
201 201
    def equivalent_length(self, value):
202
        self._equivalent_length = value
202
        self._equivalent_length = float(value)
203 203

  
204 204
    @property
205 205
    def roughness(self):
......
207 207

  
208 208
    @roughness.setter
209 209
    def roughness(self, value):
210
        self._roughness = value
210
        self._roughness = float(value)
211 211

  
212 212
    @property
213 213
    def limitation_velocity(self):
......
215 215

  
216 216
    @limitation_velocity.setter
217 217
    def limitation_velocity(self, value):
218
        self._limitation_velocity = value
218
        self._limitation_velocity = float(value)
219 219

  
220 220
    @property
221 221
    def limitation_pressure_drop(self):
......
223 223

  
224 224
    @limitation_pressure_drop.setter
225 225
    def limitation_pressure_drop(self, value):
226
        self._limitation_pressure_drop = value
226
        self._limitation_pressure_drop = float(value)
227 227

  
228 228
    @property
229 229
    def velocity(self):
......
231 231

  
232 232
    @velocity.setter
233 233
    def velocity(self, value):
234
        self._velocity = value
234
        self._velocity = float(value)
235 235

  
236 236
    @property
237 237
    def reynolds(self):
......
239 239

  
240 240
    @reynolds.setter
241 241
    def reynolds(self, value):
242
        self._reynolds = value
242
        self._reynolds = float(value)
243 243

  
244 244
    @property
245 245
    def friction_factor(self):
......
247 247

  
248 248
    @friction_factor.setter
249 249
    def friction_factor(self, value):
250
        self._friction_factor = value
250
        self._friction_factor = float(value)
251 251

  
252 252
    @property
253 253
    def pressure_drop(self):
......
255 255

  
256 256
    @pressure_drop.setter
257 257
    def pressure_drop(self, value):
258
        self._pressure_drop = value
258
        self._pressure_drop = float(value)
259 259

  
260 260
    @property
261 261
    def pressure_drop_friction(self):
......
263 263

  
264 264
    @pressure_drop_friction.setter
265 265
    def pressure_drop_friction(self, value):
266
        self._pressure_drop_friction = value
266
        self._pressure_drop_friction = float(value)
267 267

  
268 268
    @property
269 269
    def pressure_drop_static(self):
......
271 271

  
272 272
    @pressure_drop_static.setter
273 273
    def pressure_drop_static(self, value):
274
        self._pressure_drop_static = value
274
        self._pressure_drop_static = float(value)
275 275

  
276 276
    @property
277 277
    def pressure_pipe_end_point(self):
......
279 279

  
280 280
    @pressure_pipe_end_point.setter
281 281
    def pressure_pipe_end_point(self, value):
282
        self._pressure_pipe_end_point = value
282
        self._pressure_pipe_end_point = float(value)
283 283

  
284 284
    @property
285 285
    def power(self):
......
287 287

  
288 288
    @power.setter
289 289
    def power(self, value):
290
        self._power = value
290
        self._power = float(value)
291 291

  
292 292

  
293 293
    def fromRow(row):

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)