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

character art fails for LieAlgebra elements #29205

Closed
mwageringel opened this issue Feb 15, 2020 · 26 comments
Closed

character art fails for LieAlgebra elements #29205

mwageringel opened this issue Feb 15, 2020 · 26 comments

Comments

@mwageringel
Copy link

sage: L.<x,y> = LieAlgebra(QQ)
sage: ascii_art(x)
...
AttributeError: 'FreeLieAlgebra.Lyndon_with_category' object has no attribute '_ascii_art_term'

This could be fixed by implementing _ascii_art_term or by implementing an appropriate fallback for cases where _ascii_art_term is not defined. The latter would be desirable in any case.

The same applies to the unicode art representation.

CC: @tscrim @vbraun

Component: algebra

Keywords: ascii_art, unicode_art

Author: Travis Scrimshaw

Branch/Commit: 5dd390b

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/29205

@mwageringel mwageringel added this to the sage-9.1 milestone Feb 15, 2020
@mkoeppe
Copy link
Member

mkoeppe commented May 1, 2020

comment:1

Moving tickets to milestone sage-9.2 based on a review of last modification date, branch status, and severity.

@mkoeppe mkoeppe modified the milestones: sage-9.1, sage-9.2 May 1, 2020
@tscrim
Copy link
Collaborator

tscrim commented Jul 12, 2020

comment:3

I am doing a full overhaul of the acii and unicode art for Lie algebras.

@tscrim
Copy link
Collaborator

tscrim commented Jul 12, 2020

Dependencies: #30119

@tscrim
Copy link
Collaborator

tscrim commented Jul 12, 2020

Commit: e2be7c4

@tscrim
Copy link
Collaborator

tscrim commented Jul 12, 2020

comment:4

Here is a branch that fixes up a bunch of issues with ascii/unicode art across the Lie algebra code and adds some improved displays.


New commits:

3433479Creating functions for converting numbers into unicode sub/superscripts.
3fc2bdbAdding support for negative numbers and superscript fractions.
830d2f1Fixing ascii/unicode art for free Lie algebras.
8710b0bAdd ascii and unicode art for compact real forms.
bcdd907Streamline repr for wrapped Lie algebra elements.
a454ac5Better ascii/unicode art representative for Lie alg w/ structure coeffs.
89182a3Unicode art for Heisenberg Lie algebras.
080907eUnicode art for rank 2 Heisenberg Virasoro Lie algebras.
e2be7c4Adding unicode art for Virasoro Lie algebras.

@tscrim
Copy link
Collaborator

tscrim commented Jul 12, 2020

Author: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Jul 12, 2020

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 13, 2020

Changed commit from e2be7c4 to cd74400

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 13, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

0d244b5Fixing unicode pdf build issues.
d834c56Merge branch 'public/typeset/unicode_sub_super-30119' into public/lie_algebras/fix_ascii_unicode_art-29205
cd74400Adding unicode art for affine Lie algebra elements.

@tscrim
Copy link
Collaborator

tscrim commented Jul 13, 2020

comment:6

I merged in the latest fixes from #30119 and added one more unicode art with fixing the generic Lie algebra element one with multiline unicode art (that is a more general problem for another day).

@mkoeppe
Copy link
Member

mkoeppe commented Jul 13, 2020

comment:7

Not sure about this superscript comma.

@tscrim
Copy link
Collaborator

tscrim commented Jul 13, 2020

comment:8

I am not sure either. That was the best thing I could find for that one. I don't know what else to use.

@mkoeppe
Copy link
Member

mkoeppe commented Jul 13, 2020

comment:9

Perhaps t⁽²⏐⁻⁴⁾ instead of t⁽²˴⁻⁴⁾, but neither is ideal.

@tscrim
Copy link
Collaborator

tscrim commented Jul 13, 2020

comment:10

I think the current version looks closer to a comma and is more human readable without explanation. I agree neither is ideal.

@mkoeppe
Copy link
Member

mkoeppe commented Jul 13, 2020

comment:11

I agree, I just noticed that the appearance of what I suggested is very much font-dependent and not suitable.

@tscrim
Copy link
Collaborator

tscrim commented Jul 13, 2020

comment:12

So is this a positive review then?

@fchapoton
Copy link
Contributor

comment:13

is the patchbot plugin about (non-ascii characters without encoding top-line) obsolete ?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 15, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

5dd390bAdding utf-8 encoding header to files.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 15, 2020

Changed commit from cd74400 to 5dd390b

@tscrim
Copy link
Collaborator

tscrim commented Jul 15, 2020

comment:15

Probably safer just to add them.

@mkoeppe
Copy link
Member

mkoeppe commented Jul 15, 2020

comment:16

Are you using u'₀' instead of '₀' to appease some style checker?

@tscrim
Copy link
Collaborator

tscrim commented Jul 15, 2020

comment:17

Some leftover stuff from Python2 that is ignored by Python3.

@mkoeppe
Copy link
Member

mkoeppe commented Jul 15, 2020

Reviewer: Matthias Koeppe

@tscrim
Copy link
Collaborator

tscrim commented Aug 9, 2020

Changed dependencies from #30119 to none

@tscrim
Copy link
Collaborator

tscrim commented Aug 9, 2020

comment:19

Hi Volker, it would be nice to get this into 9.2.

@vbraun
Copy link
Member

vbraun commented Aug 9, 2020

Changed branch from public/lie_algebras/fix_ascii_unicode_art-29205 to 5dd390b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants