-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
ENH/BUG: Code Clean Up, Optimization, Documentation #1779
ENH/BUG: Code Clean Up, Optimization, Documentation #1779
Conversation
8267984
to
2349780
Compare
I suspect it will need some include fixes for each of the platforms before going in, I will finish patching tomorrow and mark it ready for review after I get it passing. |
I can definitely do a squash commit, but I've also had a few that I should have squashed in the commit history. I'll take a look tomorrow, thanks. |
BTW, GitHub is a little weird - you have to have "Fixes #1776" on one line for it to recognize the issue. I manually marked it though. |
Here are the build results |
This pull request has been mentioned on Avogadro Discussion. There might be relevant details there: https://discuss.avogadro.cc/t/november-2024-live-updates/6446/1 |
1a4b48c
to
4fc3286
Compare
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Looks ready to go it passed ARM I will check back in and make any changes if another issue crops up in the bots. |
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Here are the build results |
Is this ready for review? If not, |
Not yet I am going to squash the last two bugs picked up by the address sanitizer and undefined behavior sanitizer as soon as I get out of work today |
I will definitely '@' you as soon as I get it working. Sorry its taking so long, I don't have a lot of time during the week. |
Oh, no worries. This isn't taking "long." And all of us are doing this in our "free" time. 😄 Much appreciated whenever you get to it. |
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Here are the build results |
Let me finish the review - a few other minor notes... but overall, it looks good. |
@ghutchis I actually did have a question about the code. I am working on trying to fix whatever bug I introduced to graph.cpp. In the Ubuntu address sanitizer run you can see it's actually failing a test case "connected components" (line 86 of Run tests). However, I don't actually know if the result is wrong or the test case is wrong. I drew out a graph for the test case and it starts like this: [0] [1] [2] [3] [4] [5] Where each bracketed number is a node/vertex. It ends (right before the assert after the final edge removal) looking like this: [0]-[1]-[2] [3] [4]-[5] Where each "-" represents an edge. For reference the test case is on line 146 of graphtest.cpp. The assert asks for the connected components count and says it should be "4". I am confused about where the 4 is coming from. I think it may be due to some part of how the implementation handles lone nodes or separate subgraphs? Any insight you may have would be greatly appreciated. I feel if I can understand the intent I can identify the bug better. I poured over my changes to graph (and the member functions in general) a couple times yesterday but couldn't figure out what would cause this. I reverted the ADL on swap thinking maybe it was calling an unintended method that wasn't doing what was expected, but the issue persisted in the run from my most recent commit. Thanks for all your time and consideration in helping me get spun up on the project. |
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.
A few minor things...
@ghutchis okay, I am out of work and actively working on making review changes. Did you see my message higher up about the graph bug? |
Not sure I'll have a chance to look tonight, but I'll take a look tomorrow. |
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Here are the build results |
Alright that concludes the review related patches, none of which touched the graph file, so the test is likely still failing for some reason beyond me. The sanitizer and undefined behavior were skipped for some reason so I am caching the error from previous commit here:
|
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Otherwise, the PR looks good. Fix the weird iterator and we're good to merge. |
@ghutchis Sweet, thanks so much for all your help. I'll get a fix in in a few hours before I head to bed tonight, so it should be ready to go (checks passed) in the AM. |
Signed-off-by: Nathan Young <92858834+TactfulDeity@users.noreply.github.com>
Alright fix is in and ready to go |
Here are the build results |
Here are the build results |
Request:
I would like to request a squash commit if this goes in, I ran the clang formatting with style
file
, but it doesn't pick up all of it that actions bot does hence the needless third commit.Preface:
I only did the calc, core, and io folders completely, but I touched on other smaller plugins as well. I am not overly familiar with QT so I was cautious about removing those headers. I only did what I could finish over the long weekend, but I am willing to do more down the line. Special care should be taken reviewing
qtaim
plugin, I consolidated and cleaned up a lot, so I want to make sure I didn't break it.Fixes:
#1776
List of Changes:
qtaim
plugin (should be reviewed with scrutiny)using std::namespace
typedef
tousing
statementsNote:
I went through this in order to familiarize myself with the code base better, during which I noticed there are a bunch of "utility" classes that basically act as an interface of sorts. I think these could be changed to instead be namespaces to remove unneeded object overhead. Example:
atomutilities.h
. I will add these to the list of changes I can help with if other maintainers agree.Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.