phoebe-project / phoebe2

PHOEBE - Eclipsing Binary Star Modeling Software
http://phoebe-project.org
GNU General Public License v3.0
76 stars 28 forks source link

fix multi-compute with enabled/disabled datasets #878

Closed kecnry closed 1 month ago

kecnry commented 1 month ago

This PR fixes a traceback when using multiple computes with datasets disabled in some of the computes. Previously, this raised the following error:

  File "phoebe2/phoebe/frontend/bundle.py", line 12147, in run_compute
    fluxes = fluxes/distance**2 + l3s.get(dataset)
             ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'float' and 'NoneType'