getexp function

Getter function to get a variable of an experiment object