The recipeMeta function is used to retrieve meta data from a recipe file.
Currently returns: MIPAR version, calibration factor, units, date and time last modified, layers, layer colors and measurements.

Arguments

Args:
recipePath: file path to recipe as raw string

Returns:
recOutput: dictionary variable that contains the metadata of the recipe

Syntax

X = mipar.recipeMeta(recipePath)

Examples

recipePath = r'C:\Users\PaulS\Documents\Python\Test_Folder\Training.rcp'
recipeMetadata = mipar.recipeMeta(recipePath)
lastModified = recipeMetadata.get('last_modified') #date last modified
MIPARVersion = recipeMetadata.get('version')       #MIPAR version
calibration =  recipeMetadata.get('cal')           #calibration
units =  recipeMetadata.get('units')               #units
layers = recipeMetadata.get('layers')              #layers
colors = recipeMetadata.get('colors')              #colors that correspond to the layers in order
measurements =  recipeMetadata.get('meas)          #measurements

Need more help with this?
Chat with an expert now ››

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.