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

bug with remaining confusion between object id and index #564

Closed
ppebay opened this issue Dec 9, 2024 · 1 comment · Fixed by #565
Closed

bug with remaining confusion between object id and index #564

ppebay opened this issue Dec 9, 2024 · 1 comment · Fixed by #565
Assignees
Labels
bug Something isn't working

Comments

@ppebay
Copy link
Contributor

ppebay commented Dec 9, 2024

Steps to reproduce:

In develop branch, from src/lbaf/Applications, execute:

python LBAF_app.py  -c conf.yaml

Description of the issue:

The following runtime error:

multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/Users/pppebay/miniconda3/envs/lbaf39/lib/python3.9/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/Users/pppebay/Documents/Git/LB-analysis-framework/src/lbaf/IO/lbsVTDataWriter.py", line 279, in _json_writer
    serial_json = self._json_serializer(rank_phases_double)
  File "/Users/pppebay/Documents/Git/LB-analysis-framework/src/lbaf/IO/lbsVTDataWriter.py", line 251, in _json_serializer
    self.__create_tasks(
  File "/Users/pppebay/Documents/Git/LB-analysis-framework/src/lbaf/IO/lbsVTDataWriter.py", line 126, in __create_tasks
    if o.get_index() is not None:
  File "/Users/pppebay/Documents/Git/LB-analysis-framework/src/lbaf/Model/lbsObject.py", line 184, in get_index
    return self.__index
AttributeError: 'Object' object has no attribute '_Object__index'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/pppebay/Documents/Git/LB-analysis-framework/src/lbaf/Applications/LBAF_app.py", line 693, in <module>
    LBAFApplication().run()
  File "/Users/pppebay/Documents/Git/LB-analysis-framework/src/lbaf/Applications/LBAF_app.py", line 623, in run
    self.__json_writer.write(
  File "/Users/pppebay/Documents/Git/LB-analysis-framework/src/lbaf/IO/lbsVTDataWriter.py", line 316, in write
    for file_name in results:
  File "/Users/pppebay/miniconda3/envs/lbaf39/lib/python3.9/multiprocessing/pool.py", line 870, in next
    raise value
AttributeError: 'Object' object has no attribute '_Object__index'
@ppebay ppebay added the bug Something isn't working label Dec 9, 2024
@ppebay ppebay self-assigned this Dec 9, 2024
@ppebay
Copy link
Contributor Author

ppebay commented Dec 9, 2024

@lifflander this is related to what I was describing in a comment to PR #559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant