-
Notifications
You must be signed in to change notification settings - Fork 15
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
Minor Bugfixes #180
Minor Bugfixes #180
Conversation
Test Results 4 files ± 0 108 suites +2 8m 0s ⏱️ - 7m 23s Results for commit 3ce1cbe. ± Comparison against base commit 74422b7. This pull request removes 19 and adds 2 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
97c49c5
to
9a6e079
Compare
Update base github-actions to node-20 (v4) gha/[up|down]load-artifact no longer accept same named artifacts for a matrix run Update Matlab CI to v2 lowest supported version is R2021a Update sw_mex to support Apple-Silicon (arm64) Fix bug in INSTALL_DEPS in yaml Inc pcsmo test tolerance to pass on MacOS-14
9a6e079
to
472e474
Compare
I haven't had a chance to tests this yet, but from a quick glance at the diff it looks like this may still be present - if so would it would make sense to fix it in this PR right? |
@RichardWaiteSTFC Yes, I think it makes sense to have it in this PR. I'll try to fix the |
spinwave() now creates a .obj field regardless When fitmode=true, this a barebones struct When fitmode=false, this is a full spinw object Fix issue with sw_plotspec when using fastmode/fitmode Add basic test for fitspec() to check twins handling
I have been able to reproduce #174 on master using this code adapted from tutorial 8
This is indeed fixed in this branch, but if you set
which isn't thrown on main |
Running the code in #179
now throws a different error on this branch
it still works for no symbolic |
Thanks @RichardWaiteSTFC - I'll try to fix these issues and do better testing! Will push something next week... |
No worries, I can also help out next week - I'll keep testing and post more comments if I find anything... |
Running tutorial 8 code again (see #180 (comment)) with this plotting command
now throws this error
However if you convert the colormap to a column vector - i.e. Basically I think this is because you fixed #132 - but it does indicate that at one point it was possible to pass a row vector here? |
I was looking into testing #131 - it looks to me like jet is inverted (normally red is high and blue is low?)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this Duc, the sw_plotspec
code looks much simpler to follow! And thanks for adding a test for sw_fitspec
! Just a few small things above. I can also look into these next week I know you're busy!
Also 472e474 needs to removed.
@RichardWaiteSTFC Thanks for the review - I think I fixed most issues raised...
I think if we squash and merge, git is smart enough not to merge this twice, so it should be ok. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #180 +/- ##
==========================================
+ Coverage 40.51% 40.73% +0.22%
==========================================
Files 240 239 -1
Lines 15981 15810 -171
==========================================
- Hits 6474 6440 -34
+ Misses 9507 9370 -137 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks - thanks also for updating the changelog!
A bunch of minor bugfixes which are either suggested by users or originally reported by them.
sw_plotspec
in Auto mode in sw_plotspec overrides 'imag' option #172hkl
to column to fix Unclear documentation about calculating spinwave spectra (or potentially a python regression) #179sw_plotspec
to fix Inverted colormaps in sw_plotspec #131sw_plotspec
to avoid recursive calls - split off main plotting stuff into an internal function which in order to fix User specified arguments in sw_plotspec ignored if 'mode', 'auto' (the default) used #132spinw.fitspec
in Bugs in fitspec #98fitspec
to fix fitspec: cannot handle twins #158