Closed StephenLesage closed 3 months ago
This looks like a problem in updating the names
attribute in SuperFunction
. This is really a bug in gdt-core, so I will open up an issue there and reference this one.
@StephenLesage the fix was implemented in PR USRA-STI/gdt-core#35 and merged into main
. You should be able to pip install the main
branch from the repo and verify this solves the issue.
SuperFunction() does not work properly when more than two functions are used. Here is example code to reproduce the issue:
Here is the failure trace:
I tried the following syntax suggestions and got the same error message: 1) SBPL_PL_Gline = SmoothlyBrokenPowerLaw()+PowerLaw()+GaussLine() 2) SBPL_PL_Gline = (SmoothlyBrokenPowerLaw()+PowerLaw())+GaussLine() 3) SBPL_PL = SmoothlyBrokenPowerLaw()+PowerLaw() SBPL_PL_Gline = SBPL_PL + GaussLine()
It appears to be an issue in model.py, specifically that the number of components "num_comp" does not reflect the number of function components "comps" being fed to SuperFunction(). Implementing print statements reveals:
I can provide the data files to run the example code if necessary.