Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuple object cannot be interpretted as integer #45

Open
chadcwilliams opened this issue Oct 19, 2023 · 0 comments
Open

Tuple object cannot be interpretted as integer #45

chadcwilliams opened this issue Oct 19, 2023 · 0 comments
Labels
priority 2 - wanted These should be addressed within 2 months.

Comments

@chadcwilliams
Copy link

chadcwilliams commented Oct 19, 2023

I often get this error message:

INFO:autora.theorist.bms.regressor:BMS fitting finished
Traceback (most recent call last):
  File "C:\Users\cwill\GitHub\virtualEnvs\rewp500BMSEnv\lib\site-packages\numpy\core\fromnumeric.py", line 59, in _wrapfunc
    return bound(*args, **kwds)
TypeError: 'tuple' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\cwill\GitHub\rewp500-BMS\rewp500_BMS.py", line 35, in <module>
    eqs.append(run_BMS(x,y))
  File "C:\Users\cwill\GitHub\rewp500-BMS\rewp500_BMS.py", line 21, in run_BMS
    return bms.repr(())
  File "C:\Users\cwill\GitHub\virtualEnvs\rewp500BMSEnv\lib\site-packages\autora\theorist\bms\regressor.py", line 188, in repr
    model_str = model_str.replace(name, str(np.round(value, decimals=decimals)))
  File "C:\Users\cwill\GitHub\virtualEnvs\rewp500BMSEnv\lib\site-packages\numpy\core\fromnumeric.py", line 3360, in round
    return _wrapfunc(a, 'round', decimals=decimals, out=out)
  File "C:\Users\cwill\GitHub\virtualEnvs\rewp500BMSEnv\lib\site-packages\numpy\core\fromnumeric.py", line 68, in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
  File "C:\Users\cwill\GitHub\virtualEnvs\rewp500BMSEnv\lib\site-packages\numpy\core\fromnumeric.py", line 45, in _wrapit
    result = getattr(asarray(obj), method)(*args, **kwds)
TypeError: 'tuple' object cannot be interpreted as an integer
@chadcwilliams chadcwilliams added the priority 2 - wanted These should be addressed within 2 months. label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority 2 - wanted These should be addressed within 2 months.
Projects
None yet
Development

No branches or pull requests

1 participant