#20526: A benchmarking tool for linear codes
-------------------------------------+-------------------------------------
Reporter: dlucas | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-7.2
Component: coding theory | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/dlucas/benchmarking_tool | 8e363dd7ecf203cc4f203ea2b985573e4d59423c
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jsrn):
I've looked at the problem with the @experimental warning. The problem
seems simply to be that (almost all) warnings in Sage currently issue a
message *every* time the offending code is being run. Try
`LinearCode.decode` for an example.
So why doesn't `AsymptoticRing` and friends behave like this with the
@experimental warning? It's because all the classes inherit from
`UniqueRepresentation`, so if multiple instantiations are called with the
same arguments, the `__init__` is actually only called once. This is why
their `TESTS` block at the module top level turns off the `FutureWarning`
in all the individual doc-tests later on.
I've asked about this on sage-devel:
https://groups.google.com/forum/#!topic/sage-devel/RxMNjVWBeI0
Btw: how did I find out about this? I took the file `growth_groups.py` in
`sage.rings.asymptotic_ring`, copied it and reduced it to a minimal
working class that behaved well. Then I tried to remove code lines from it
one-by-one until I found the line that made the doc-tests work. This
turned out to be inheriting from `UniqueRepresentation`.
Best,
Johan
--
Ticket URL: <http://trac.sagemath.org/ticket/20526#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.