Skip to content

Fix tests#112

Merged
chrisbrahms merged 9 commits intoLupoLab:masterfrom
chrisbrahms:fixtests
Apr 1, 2020
Merged

Fix tests#112
chrisbrahms merged 9 commits intoLupoLab:masterfrom
chrisbrahms:fixtests

Conversation

@chrisbrahms
Copy link
Copy Markdown
Collaborator

This fixes various small things that were messed up when merging #99 and #109 as well as the issue flagged up here

Notes:

  • Some tests in test_capillary.jl and test_maths.jl are now marked as broken. They will error if/when they pass again.
  • The tests in test_tools.jl failed and I couldn't find a point where they passed. This makes sense to me as the comparison values only had 3 significant digits and the isapprox comparisons had no tolerances specified. Did these pass at some point in the state currently on master?
  • I've dramatically reduced the amount of status updates printed by the longer-running test scripts

@chrisbrahms chrisbrahms requested a review from jtravs April 1, 2020 13:32
Copy link
Copy Markdown
Contributor

@jtravs jtravs left a comment

Choose a reason for hiding this comment

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

In general this all makes sense. But I really don't like the terminology of passing in β1. I much prefer passing a velocity and working out why that was an issue.

Comment thread src/LinearOps.jl
end

function make_const_linop(grid::Grid.RealGrid, βfun!, αfun!, frame_vel)
function make_const_linop(grid::Grid.RealGrid, βfun!, αfun!, β1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know why your doing this, but it kind of removes generality. There are cases where we want a different frame velocity, and it seems weird to have to pass the inverse.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it does seem weird, especially since the underlying problem shouldn't even exist. but at the moment the linop building is messy anyway (hence #27 ) and I want to sort it out properly. I will do that once #113 and #97 are sorted out.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK, I'm happy with that. Perhaps open an issue to keep track.

Comment thread test/test_tools.jl
@test isapprox(p.Lfiss, 1.768)
@test isapprox(p.zdw, 378.8e-9)
@test isapprox(p.P0/p.Pcr, 0.0398)
@test isapprox(p.N, 2.239, rtol=1e-2)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm sure I had these tolerances in there just a few days ago. But then again I've been sure of many untrue things recently.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

same.

@chrisbrahms chrisbrahms merged commit 6c1bdaa into LupoLab:master Apr 1, 2020
@chrisbrahms chrisbrahms mentioned this pull request Apr 1, 2020
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.

2 participants