# " 'irls\_threshold' must be a value in the range (0.0, inf\]"

**URL:** <https://simpeg.discourse.group/t/irls-threshold-must-be-a-value-in-the-range-0-0-inf/544>\
**Category:** Potential Fields\
**Created:** [January 31, 2024, 2:17pm UTC](https://simpeg.discourse.group/t/irls-threshold-must-be-a-value-in-the-range-0-0-inf/544 "2024-01-31T14:17:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhongmin\_zhu](https://avatars.discourse-cdn.com/v4/letter/z/9de053/32.png) [@zhongmin\_zhu](https://simpeg.discourse.group/u/zhongmin_zhu)\
**Post date:** [January 31, 2024, 2:17pm UTC](https://simpeg.discourse.group/t/irls-threshold-must-be-a-value-in-the-range-0-0-inf/544/1 "2024-01-31T14:17:47Z")

</div>

Dear all:  
I am doing some inversion test using spontaneous\_potential moudel within simpeg.  
When I use the sparse regularization class to constrain the inversion result using an IRLS approach,  
I got a mistake " ‘irls\_threshold’ must be a value in the range (0.0, inf]"  
and the closed file is the case I build, could you help me adress this issues?

thanks in advace.
