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

Cannot use vector-valued output of micro simulations in adaptivity #144

Closed
mathiskelm opened this issue Jan 27, 2025 · 0 comments · Fixed by #143
Closed

Cannot use vector-valued output of micro simulations in adaptivity #144

mathiskelm opened this issue Jan 27, 2025 · 0 comments · Fixed by #143
Assignees
Labels
bug Something isn't working

Comments

@mathiskelm
Copy link
Collaborator

With #142 the micro-manager aborts if a vector-valued output of the micro simulations is included in the adaptivity data.

I obtain the following error message:

TypeError: float() argument must be a string or a real number, not 'list'

The above exception was the direct cause of the following exception:
[...]
micro_manager/micro_manager.py", line 816, in _solve_micro_simulations_with_adaptivity
    self._data_for_adaptivity[name][i] = micro_sims_output[i][name]
ValueError: setting an array element with a sequence.
@IshaanDesai IshaanDesai added the bug Something isn't working label Jan 27, 2025
@IshaanDesai IshaanDesai self-assigned this Jan 27, 2025
@IshaanDesai IshaanDesai linked a pull request Jan 27, 2025 that will close this issue
3 tasks
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.

2 participants