Skip to content

Unit Tests Added For Sing.jl#74

Open
mfairborn23 wants to merge 12 commits intodevelopfrom
sing_unit_tests
Open

Unit Tests Added For Sing.jl#74
mfairborn23 wants to merge 12 commits intodevelopfrom
sing_unit_tests

Conversation

@mfairborn23
Copy link
Collaborator

This needs clean up and some more development before it is merged with develop, but here is an early version of the sing_der unit test. We still need to add unit tests for the other sing.jl functions and clean up the sing_der one because there is currently a lot of clutter with it

@mfairborn23 mfairborn23 self-assigned this Oct 23, 2025
@mfairborn23 mfairborn23 changed the title Unit Tests Added For Sing Unit Tests Added For Sing.jl Oct 23, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so- I think this one got uploaded by accident. Oops

@jhalpern30
Copy link
Collaborator

I think a lot of this can be combining the.dat files into a single HDF5 - this will mean only one data file needs to be added and we can also remove some of the read in functions within the actual testing script, since it can just be like
amat = h5file["data/amat"] or something

@matt-pharr
Copy link
Collaborator

We also have to make sure that the compile test passes! It looks like the workflow halts when we add a package to the repo, I will need to figure that out. I will do so over the weekend.

test/runtests.jl Outdated
@@ -1,5 +1,4 @@


using LinearAlgebra, BandedMatrices, Random, Test, DelimitedFiles, Printf #TODO: clean up imports - do we need all of these here?
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this is causing the issue that @matt-pharr raised with the build failing - the JPEC package isn't using BandedMatrices (it's not in the Project.toml), so I would expect the build to rightfully fail here. So that part of this call should be removed. Also, test is duplicated, so probably that too. And for the rest of them, if they're not in the Project.toml, we can't import them here I don't think, so they either need to be added or alternatives found. I think for the ones that are in there (LinearAlgebra, Printf), doing a using JPEC gives them to you for free without needed a using statement here. I think delimited files won't be needed if we switch to HDF5.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That sounds good! I will look at cleaning up the imports and making sure the Project.toml matches the develop branch later this week

… sing_unit_tests to make sure we are testing the most recent version of the code
…th current develop branch. The fortran vacuum unit tests are causing a seg fault right now though
…ludes into sing test file. Probably gonna need to do a bigger fix
…g_unit_tests to keep branch up to date with develop
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.

3 participants