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

NS sessions saved with python3.10 will not be opened with Exo-Striker on python3.11, and vice versa. #136

Open
3fon3fonov opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on

Comments

@3fon3fonov
Copy link
Owner

3fon3fonov commented Dec 18, 2024

Apparently, nested sampler sessions saved with python3.10 will not be opened with Exo-Striker running on python3.11, and vice versa:

From python3.10 to python3.11 the error is:

<class 'TypeError'> can't multiply sequence by non-int of type 'Results' <traceback object at 0x7682c57777c0>
===== 2024.12.18 13:12:37 =====
Traceback (most recent call last):
  File "/home/trifonov/exostriker/exostriker/gui.py", line 9199, in open_session
    fit_new = rv.check_for_missing_instances(fit,fit_new)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/trifonov/exostriker/exostriker/lib/RV_mod/functions.py", line 53, in check_for_missing_instances
    if len(np.atleast_1d(fit_new.ns_sampler))!=0:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/trifonov/.local/lib/python3.11/site-packages/numpy/core/shape_base.py", line 65, in atleast_1d
    ary = asanyarray(ary)
          ^^^^^^^^^^^^^^^
TypeError: can't multiply sequence by non-int of type 'Results'

and from python3.11 to python3.10 the error is:

<class 'SystemError'> unknown opcode <traceback object at 0x79876cdf7c00>
===== 2024.12.18 14:12:17 =====
Traceback (most recent call last):
  File "/home/trifonov/exostriker/exostriker/gui.py", line 9199, in open_session
    fit_new = rv.check_for_missing_instances(fit,fit_new)
  File "/home/trifonov/exostriker/exostriker/lib/RV_mod/functions.py", line 53, in check_for_missing_instances
    if len(np.atleast_1d(fit_new.ns_sampler))!=0:
  File "/home/trifonov/.local/lib/python3.10/site-packages/numpy/core/shape_base.py", line 65, in atleast_1d
    ary = asanyarray(ary)
  File "/home/trifonov/exostriker/exostriker/lib/dynesty_2_0/results.py", line 285, in __getattr__
    def __getattr__(self, name):
SystemError: unknown opcode

However, sessions saved in python3.10 and python3.11 will work fine if opened with the python3 version created.

This will likely not be fixed on my side since the ES will drift to python3.11 and python3.12. Nonetheless, fixes are welcome.

@3fon3fonov 3fon3fonov added bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant