Edited param_tester_perplex.py to deal with np.inf values