File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -543,7 +543,10 @@ impl PyNutsSettings {
543543 }
544544
545545 #[ setter( mass_matrix_eigval_cutoff) ]
546- fn set_mass_matrix_eigval_cutoff ( & mut self , val : f64 ) -> Result < ( ) > {
546+ fn set_mass_matrix_eigval_cutoff ( & mut self , val : Option < f64 > ) -> Result < ( ) > {
547+ let Some ( val) = val else {
548+ return Ok ( ( ) ) ;
549+ } ;
547550 match & mut self . inner {
548551 Settings :: LowRank ( inner) => inner. adapt_options . mass_matrix_options . eigval_cutoff = val,
549552 Settings :: Diag ( _) => {
@@ -570,7 +573,10 @@ impl PyNutsSettings {
570573 }
571574
572575 #[ setter( mass_matrix_gamma) ]
573- fn set_mass_matrix_gamma ( & mut self , val : f64 ) -> Result < ( ) > {
576+ fn set_mass_matrix_gamma ( & mut self , val : Option < f64 > ) -> Result < ( ) > {
577+ let Some ( val) = val else {
578+ return Ok ( ( ) ) ;
579+ } ;
574580 match & mut self . inner {
575581 Settings :: LowRank ( inner) => {
576582 inner. adapt_options . mass_matrix_options . gamma = val;
You can’t perform that action at this time.
0 commit comments