-
Notifications
You must be signed in to change notification settings - Fork 20
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
Upgrades to refinement functions #175
Conversation
Weird, not what I'd expect! What's the error? |
It does not like the input argument format it seems - guess this is a bit of an atypical call though. |
Looks like it's missing two arguments num_ref and int_offset. You can have these defaults set in the |
I don't really mind, I assumed we were prioritising only specifying the defaults once (guess if there were a difference, the C++ ones would override the python ones?). Can add the defaults back into the |
I think I misunderstood when I saw the .cpp extension. If you've got defaults set in the m.def section only that's totally fine |
Got it, thanks! - now we've made this decision, apologies in advance for inevitably forgetting about this discussion and putting unhelpful defaults into |
Fixed the web tests now - the only bit that might need investigation is the graph weights, as they are set to be true in |
Passing tests now, updated tests on SPARC still seem to be working: |
One more thought - should the |
Is this ready for re-review now?
Yes, that would be a useful addition. The best way to deal with these attributes which may or may not be present depending on version is to try and read them and potentially handle the error, or check for presence of the attribute name in the keys and set default/unknown if not there. |
Great, added the check in 5facf69. Yes, now ready for re-review. Thanks for the very helpful comments! |
Happy to merge this when the tests have passed then! |
Fixes and upgrades to refinement, particularly with the individual refinement and GPU libraries. Examples of output with the SPARC dataset:
CPU output: https://microreact.org/project/8i4QSPr6J1t9WDJCtN7xXy
GPU output: https://microreact.org/project/7CEYuuPk5c13JMum3QdM6R
Fixes include:
updating reference graphs
loading GPU libraries and updating GPU tests
isolate name processing
storing, updating and visualising individual refinement graphs