-
Notifications
You must be signed in to change notification settings - Fork 126
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
Saturation for modules #4249
Saturation for modules #4249
Conversation
The error which appears here in some tests stems from an example which is NOT NEW, but which I moved from a .jl to a .md file. The function called is in MPolyQuo.jl and reads a follows: function intersect(a::MPolyQuoIdeal{T}, b::MPolyQuoIdeal{T}...) where T
for g in b
@req base_ring(g) == base_ring(a) "base rings must match"
end
as = Singular.intersection(singular_generators(a.gens), [singular_generators(g.gens) for g in b]...)
return MPolyQuoIdeal(base_ring(a), as)
end The result is the ideal generated by |
@@ -294,11 +294,38 @@ minimal_generating_set(I::MPolyQuoIdeal{<:MPolyDecRingElem}) | |||
|
|||
#### Intersection of Ideals | |||
|
|||
```@docs | |||
```@julia |
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.
is this change intended? why don't you want to include the docstring here?
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.
Please see here:
https://docs.oscar-system.org/dev/CommutativeAlgebra/affine_algebras/#Ideals-in-Affine-Algebras
When I include the docstring, a whole Rattenschwanz of methods for intersection will be printed. These happens occasionally and so far, none of our gurus had a solution for this problem. Please note: I duplicated the example using jldoctest in the .md file, so the example will run anyway.
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.
I think @thofma has some tool that might help in these cases. Maybe he could try it on this instance of the problem.
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.
There is no docstring for the signature
intersect(V::Vector{MPolyQuoIdeal{T}}) where T
so it just includes all of them. I think simply removing this should fix everything.
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.
and keep the @docs
@@ -294,11 +294,38 @@ minimal_generating_set(I::MPolyQuoIdeal{<:MPolyDecRingElem}) | |||
|
|||
#### Intersection of Ideals | |||
|
|||
```@docs | |||
```@julia | |||
intersect(a::MPolyQuoIdeal{T}, bs::MPolyQuoIdeal{T}...) where T | |||
intersect(V::Vector{MPolyQuoIdeal{T}}) where T |
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.
intersect(V::Vector{MPolyQuoIdeal{T}}) where T |
@wdecker I wrote a little package to help with the docstrings (which is how I found out about the things mentioned earlier):
The You can also do
to list all docstrings for a specific function. This also gives you instructions on how to include a specific one in the documentation (which works most of the time). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4249 +/- ##
==========================================
- Coverage 84.59% 84.59% -0.01%
==========================================
Files 631 631
Lines 85072 85109 +37
==========================================
+ Hits 71970 72001 +31
- Misses 13102 13108 +6
|
Huh, it's indeed odd: the docstring for It looks like this:
And clearly CI tests pass. But if I run this test manually in the REPL, I get different output (just like @wdecker):
If I run
it modifies the docstring to the new output. But CI does not complain. What's going on there? |
The following claims that this is run |
The problem with additional element in intersect is fixed in Singular with |
thx!
… Am 29.10.2024 um 11:18 schrieb Hans Schoenemann ***@***.***>:
The problem with additional element in intersect is fixed in Singular with
***@***.*** <Singular/Singular@de8b882>,
will be in Oscar with the next Singular(.jl) release
—
Reply to this email directly, view it on GitHub <#4249 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AASSXEVVOMKIJAA4PKNF7NLZ55OI5AVCNFSM6AAAAABQVW6P3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBTHAYDQMZZGI>.
You are receiving this because you were mentioned.
|
* Saturation for modules * remove whitespace * Correction * reacting to the discussion
No description provided.