You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parameter dictionary, contains the data information, by default None
231
+
The parameter dictionary, contains the data information, by default empty dict
229
232
param_def_dict : typing.Dict[str, str], optional
230
233
The parameter definition dictionary, contains the data parameter definition, by default None, which means the parameter definition will be automatically detected
231
-
234
+
remark : str, optional
235
+
The remark of the data setting, by default None, can't be positive int number
236
+
232
237
Returns
233
238
-------
234
239
int
235
240
The data ID
236
241
237
242
"""
238
-
assert" "notindata_name, 'Data name cannot contain space'
243
+
# assert " " not in data_name, 'Data name cannot contain space'
239
244
assertparam_def_dictisNoneorlen(param_def_dict) ==len(param_dict), 'Parameter definition and parameter dict length mismatch'
245
+
assertremarkisNoneornotremark.isdigit(), 'Remark cannot be positive int number'
246
+
data_name=data_name.replace(' ', '_')
240
247
self._data=data_name
241
248
param_dict=deepcopy(param_dict)
242
249
iflen(param_dict) ==0:
243
250
self._data_id=-1
244
251
print(f"No parameter for table data_{data_name}, table creating canceled")
The parameter dictionary, contains the method information, by default None
271
+
The parameter dictionary, contains the method information, by default empty dict
264
272
param_def_dict : typing.Dict[str, str], optional
265
273
The parameter definition dictionary, contains the method parameter definition, by default None, which means the parameter definition will be automatically detected
266
-
274
+
detail_def_dict : typing.Dict[str, str], optional
275
+
The detail definition dictionary, contains the detail parameter definition, by default None
276
+
remark : str, optional
277
+
The remark of the method setting, by default None, can't be positive int number
278
+
267
279
Returns
268
280
-------
269
281
int
270
282
The method ID
271
283
272
284
"""
273
-
assert" "notinmethod_name, 'Method name cannot contain space'
285
+
# assert " " not in method_name, 'Method name cannot contain space'
274
286
assertparam_def_dictisNoneorlen(param_def_dict) ==len(param_dict), 'Parameter definition and parameter dict length mismatch'
287
+
assertremarkisNoneornotremark.isdigit(), 'Remark cannot be positive int number'
The result definition dictionary, contains the result parameter definition, by default None, which means the parameter definition will be automatically detected when the result is recorded
302
317
303
318
"""
304
-
assert" "notintask_name, 'Task name cannot contain space'
319
+
# assert " " not in task_name, 'Task name cannot contain space'
0 commit comments