getPx function

Extract Px from fitted objects