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

Refactored two functions #660

Merged
merged 46 commits into from
Jul 2, 2024

Conversation

kevindlewis23
Copy link
Collaborator

Refactor of computeIntersection and vecmvcobmatrix, as well as some small style changes.code fixes. Both tested, one with permanent testcases written

@pep8speaks
Copy link

pep8speaks commented Jul 1, 2024

Hello @kevindlewis23! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-07-02 15:31:03 UTC

Copy link
Collaborator

@psavery psavery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@@ -93,9 +93,9 @@ def cellIndices(edges, points_1d):
def _fill_connectivity(out, m, n, p):
i_con = 0
for k in range(p):
extra = k*(n+1)*(m+1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

T[:, i + 3, j] = sqr2 * R[:, i1, j] * R[:, i2, j]
T[:, i + 3, j + 3] = (
R[:, i1, j1] * R[:, i2, j2] + R[:, i1, j2] * R[:, i2, j1]
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad you wrote a test for this change!

@psavery
Copy link
Collaborator

psavery commented Jul 1, 2024

Looks like mirrorlist.centos.org is down, and that is causing the linux package to fail. Hopefully it will come back up soon...

@bnmajor
Copy link
Collaborator

bnmajor commented Jul 1, 2024

Looks like mirrorlist.centos.org is down, and that is causing the linux package to fail. Hopefully it will come back up soon...

I think we'll need to bump the version:
https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve
https://www.redhat.com/en/topics/linux/centos-linux-eol

@psavery
Copy link
Collaborator

psavery commented Jul 1, 2024

Hmm... that's a shame. We could upgrade to centos 8, which would increase our glibc version to 2.28. But the problem is that there are still a lot of Linux computers out there that are still on glibc 2.17. It seems a lot of people (such as manylinux2014 python wheel standard) will still be using centos 7 for the time being for maximum compatibility on Linux systems.

It might be best to use an archive mirror instead, like it appears some people are doing.

@psavery
Copy link
Collaborator

psavery commented Jul 1, 2024

The packaging issue is now fixed in master. Feel free to rebase on master and push here, and it should fix the CI.

@kevindlewis23 kevindlewis23 merged commit fb05f8c into HEXRD:master Jul 2, 2024
6 checks passed
@kevindlewis23 kevindlewis23 deleted the minor-refactoring branch July 2, 2024 16:40
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.

4 participants