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

Fix bug on isproper of MatrixDirichlet #215

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Fix bug on isproper of MatrixDirichlet #215

merged 2 commits into from
Oct 23, 2024

Conversation

Raphael-Tresor
Copy link
Contributor

@Raphael-Tresor Raphael-Tresor commented Oct 22, 2024

  • Most of the tests were actually testing nothing because the first assertion of the isproper function was to test the absence of the last argument in the call and most of the test had a last argument
  • The function isproper itself had an assertion that was always true independently of the input of MatrixDirichlet

close #213

@@ -90,15 +90,14 @@ end
end

for space in (MeanParametersSpace(), NaturalParametersSpace())
@test !isproper(space, MatrixDirichlet, [Inf Inf; Inf 1.0], 1.0)
@test !isproper(space, MatrixDirichlet, [Inf Inf; Inf 1.0])
Copy link
Member

Choose a reason for hiding this comment

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

Why are you changing this test? Just to see if the nothing condition hits?

Copy link
Contributor Author

@Raphael-Tresor Raphael-Tresor Oct 23, 2024

Choose a reason for hiding this comment

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

If I am not wrong, the noting condition will always hit if we add a fourth argument in the function call. So almost all the tests used to check only that. Right?

@wouterwln wouterwln merged commit 4ac105d into main Oct 23, 2024
2 checks passed
@wouterwln wouterwln deleted the DirichletTensor branch October 23, 2024 14:09
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.

Fix Bugs on isproper of MatrixDirichlet
2 participants