fix: fix TypeError when using Nyquist interp by Tieqiong · Pull Request #268 · diffpy/diffpy.pdfgui · GitHub
Skip to content

fix: fix TypeError when using Nyquist interp#268

Merged
sbillinge merged 1 commit into
diffpy:mainfrom
Tieqiong:interp_xtype
Feb 6, 2025
Merged

fix: fix TypeError when using Nyquist interp#268
sbillinge merged 1 commit into
diffpy:mainfrom
Tieqiong:interp_xtype

Conversation

@Tieqiong

@Tieqiong Tieqiong commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

@sbillinge please check, thanks

Previously when using nyquest grid it will give error like

TypeError: '<' not supported between instances of 'list' and 'float'

which is because the sampler function in diffpy.utils only accept ndarray while pdfgui provide array_like (list) type

@codecov

codecov Bot commented Feb 5, 2025

Copy link
Copy Markdown

@sbillinge sbillinge merged commit ce00937 into diffpy:main Feb 6, 2025
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

Successfully merging this pull request may close these issues.

2 participants