[ #GetStr #ColumnStr #Col ('MyStr','MyStr',SYS.tables.StringCol(10)), ('MyIntsList','MyIntsList',SYS.tables.Int64Col(shape=3)) ] } ).model( ) #Build a structure with a database SYS.mapSet( MyModeler.ModeledHdfTable, [ ('row.__setitem__',{'#liarg':('MyStr',"hello")}), ('row.append',{'#liarg':None}), ('row.__setitem__',{'#liarg':('MyStr',"bonjour")}), ('row.__setitem__',{'#liarg':('MyIntsList',[4,5,6])}), ('row.append',{'#liarg':None}), ('flush',{'#liarg':None}) ] ) #Definition the AttestedStr print('MyModeler is ') SYS._print(MyModeler) #view print('hdf5 file is : \n'+SYS._str(MyModeler.hdfview())) #close MyModeler.file(_ModeStr='c')
'MyStr', 'MyIntsList' ] } ).model( ) #Build a structure with a database SYS.mapSet( MyModeler.ModeledHdfTable, [ ('row.__setitem__',{'#liarg':('MyStr',"hello")}), ('row.append',{'#liarg':None}), ('row.__setitem__',{'#liarg':('MyStr',"bonjour")}), ('row.__setitem__',{'#liarg':('MyIntsList',[1])}), ('row.append',{'#liarg':None}), #('row.__setitem__',{'#liarg':('MyStr',"bonjour")}), #('row.__setitem__',{'#liarg':('MyIntsList',[1,3])}), #THIS would bring an error because list has to be size=1 #('row.append',{'#liarg':None}), ('flush',{'#liarg':None}) ] ) #Definition the AttestedStr print('MyModeler is ') SYS._print(MyModeler) #view print('hdf5 file is : \n'+SYS._str(MyModeler.hdfview()))
#ImportModules import ShareYourSystem as SYS #Definition MyModeler=SYS.ModelerClass( **{ 'FolderingPathVariable':SYS.Modeler.LocalFolderPathStr, 'PymongoingDatabaseStr':"Thing" } ).model( ) #Build a structure with a database SYS.mapSet( MyModeler.ModeledMongoCollection, [ ('remove',{}), ('insert',{'MyStr':"hello"}) ] ) #print print('mongo db is : \n'+SYS._str(MyModeler.pymongoview())) #print print('MyModeler is ') SYS._print(MyModeler) #kill MyModeler.process(_ActionStr='kill')
# GetStr #ColumnStr #Col ("MyInt", "MyInt", SYS.tables.Int64Col()), ("MyFloatsList", "MyFloatsList", (SYS.tables.Float64Col, ["UnitsInt"])), ], } ) .model() ) # Build a structure with a database SYS.mapSet( MyModeler.ModeledHdfTable, [ ("row.__setitem__", {"#liarg": ("MyInt", 0)}), ("row.append", {"#liarg": None}), ("row.__setitem__", {"#liarg": ("MyInt", 2)}), ("row.__setitem__", {"#liarg": ("MyFloatsList", [0.0, 1.0, 2.0])}), ("row.append", {"#liarg": None}), ("flush", {"#liarg": None}), ], ) # Definition MyModeler.setDone(SYS.ModelerClass).setSwitch().mapSet( { "UnitsInt": 2, "ModelingDescriptionTuplesList": [ # GetStr #ColumnStr #Col ("MyInt", "MyInt", SYS.tables.Int64Col()), ("MyFloatsList", "MyFloatsList", (SYS.tables.Float64Col, ["UnitsInt"])), ],