Constructor function for leaf_par class. This function ensures that leaf parameter inputs are properly formatted.

leaf_par(.x)

Arguments

.x

A list to be constructed into leaf_par. If units are not provided, they will be set without conversion. If units are provided, they will be checked and converted to units that tealeaves uses.