Commit e1ae89c
committed
Fix TOPP parameter handling for zero values
Changed truthiness check `if v:` to explicit `if v != "" and v is not None:`
to properly handle numeric zero values (0, 0.0) which are valid parameters.
Previously, setting fragment_bin_offset=0 would skip the value entirely,
causing malformed command lines where the next flag was interpreted as
the previous parameter's value.1 parent e1df1a7 commit e1ae89c
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
0 commit comments