maci.loadstr
loads maci data from a string
loading a string
Loads a string that contains maci data that follows the maci language syntax (See language), and returns a MaciDataObj.
Basic Example of loading a string using default positional parameter
data = maci.loadstr('mydata1 = "data1" \nmydata2 = "data2"')
In this example, we simply load maci data from a string using the loadstr function passing a maci formatted string as the first argument to the function to load the maci data, and assign the returned data object to a variable.
Access the data by their individual and respective attribute names like you normally would on an object in python.
Example accessing and viewing the data
data.mydata1
data.mydata2
print(data.mydata1)
print(data.mydata2)
You may also view all maci data simply by printing or viewing the repr of the object (See object)
parameters & arguments
Describes all parameter functionality and accepted data types
Last updated