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 {
543
543
}
544
544
545
545
#[ 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
+ } ;
547
550
match & mut self . inner {
548
551
Settings :: LowRank ( inner) => inner. adapt_options . mass_matrix_options . eigval_cutoff = val,
549
552
Settings :: Diag ( _) => {
@@ -570,7 +573,10 @@ impl PyNutsSettings {
570
573
}
571
574
572
575
#[ 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
+ } ;
574
580
match & mut self . inner {
575
581
Settings :: LowRank ( inner) => {
576
582
inner. adapt_options . mass_matrix_options . gamma = val;
You can’t perform that action at this time.
0 commit comments