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

Float kwargs to disp2sqw_eval are passed as nested lists #6

Open
rebeccafair opened this issue Oct 8, 2021 · 0 comments
Open

Float kwargs to disp2sqw_eval are passed as nested lists #6

rebeccafair opened this issue Oct 8, 2021 · 0 comments

Comments

@rebeccafair
Copy link
Member

If I pass a float kwarg to a simulation function via disp2sqw_eval, it ends up as a nested list. e.g.

>>> cut_sim = m.disp2sqw_eval(m.d1d(qcut), euobj.horace_disp, ('frequency_scale', 1.0, 'intensity_scale', 1.0), fwhh, 'all')
intensity_scale [[1.]]
frequency_scale [[1.]]

The same happens if the arguments are not explicitly named:

>>> cut_sim = m.disp2sqw_eval(m.d1d(qcut), euobj.horace_disp, (1.0, 1.0), fwhh, 'all')
intensity_scale [[1.]]
frequency_scale [[1.]]

Or if only the first argument is set via a scalar

>>> cut_sim = m.disp2sqw_eval(m.d1d(qcut), euobj.horace_disp, 1.0, fwhh, 'all')
intensity_scale [[1.]]
frequency_scale 1.0

This is on Windows with release pace-python 0.1.1, but with my own branch version of euphonic_sqw_models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant