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

Shi arrangement for other types #27640

Closed
sagetrac-etzanaki mannequin opened this issue Apr 11, 2019 · 24 comments
Closed

Shi arrangement for other types #27640

sagetrac-etzanaki mannequin opened this issue Apr 11, 2019 · 24 comments

Comments

@sagetrac-etzanaki
Copy link
Mannequin

sagetrac-etzanaki mannequin commented Apr 11, 2019

m-extended Shi arrangement defined for any finite crystallograpic root system

CC: @VivianePons @tscrim

Component: combinatorics

Keywords: days98

Author: Eleni Tzanaki, Viviane Pons

Branch/Commit: b176a2a

Reviewer: Frédéric Chapoton, Travis Scrimshaw

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

@sagetrac-etzanaki sagetrac-etzanaki mannequin added this to the sage-8.8 milestone Apr 11, 2019
@sagetrac-etzanaki

This comment has been minimized.

@sagetrac-etzanaki
Copy link
Mannequin Author

sagetrac-etzanaki mannequin commented Apr 11, 2019

Changed keywords from none to #days98

@tscrim
Copy link
Collaborator

tscrim commented Apr 12, 2019

Changed keywords from #days98 to days98

@sagetrac-etzanaki
Copy link
Mannequin Author

sagetrac-etzanaki mannequin commented Apr 13, 2019

@sagetrac-etzanaki
Copy link
Mannequin Author

sagetrac-etzanaki mannequin commented Apr 13, 2019

Commit: 0924213

@sagetrac-etzanaki
Copy link
Mannequin Author

sagetrac-etzanaki mannequin commented Apr 13, 2019

Author: Eleni Tzanaki

@sagetrac-etzanaki
Copy link
Mannequin Author

sagetrac-etzanaki mannequin commented Apr 13, 2019

New commits:

0924213Adding cartan type and m-extended Shi arrangments

@VivianePons
Copy link

@tscrim
Copy link
Collaborator

tscrim commented Apr 13, 2019

comment:7

Some PEP8 and other misc small comments:

-    def Shi(self, data, K=QQ, names=None, m = 1):
+    def Shi(self, data, K=QQ, names=None, m=1):
         The characteristic polynomial is pre-computed using the results of
-         [Ath1996]_ .
+        [Ath1996]_.
         if data in NN:
-            cartan_type = CartanType(["A",data -1])
+            cartan_type = CartanType(['A', data-1])
         for a in PR:
             for const in range(-m+1,m+1):
-                hyperplanes.append(sum(a[j]*x[j] for j in range(d
-                ))-const)
+                hyperplanes.append(sum(a[j]*x[j] for j in range(d))-const)

(the 80 char/line is much more of a guideline and you should never sacrifice readability for it IMO).

-        charpoly = (x**(d-n))*(x-m*h)**n
+        charpoly = x**(d-n) * (x - m*h)**n

It would also be nice to remove those added blanklines at the end of the file.


New commits:

411f5e1getting rid of trailing white spaces and some mysterious "non ascii character"

@tscrim
Copy link
Collaborator

tscrim commented Apr 13, 2019

Changed commit from 0924213 to 411f5e1

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 13, 2019

Changed commit from 411f5e1 to f1bd24e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 13, 2019

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

f1bd24ePEP8 small changes and removing blanklines

@VivianePons
Copy link

comment:9

It looks like the bot is happy. I have fixed the small things pointed by Travis.

Eleni wrote the initial code and I helped with the design and details. The code extends the previous functionalities of the function. The previous usage is still valid and works exactly the same (we haven't changed those tests) and now we have more options (with Cartan types and m parameter), all documented. Eleni checked the math quite carefully.

So Travis, I let you have a look and hopefully, we can have a positive review soon.

@fchapoton
Copy link
Contributor

comment:10
  • avoid using unicode "–" in the references, just use - (minus)

  • in the doctests, write h = hyperplane, namely add space around =

  • do not repeat the "EXAMPLES::"

otherwise, looks good

@fchapoton
Copy link
Contributor

comment:11

and this line is useless, as told by the patchbot:

R = RootSystem(cartan_type)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 13, 2019

Changed commit from f1bd24e to b176a2a

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 13, 2019

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

b176a2aSmall fixes following comments

@VivianePons
Copy link

comment:13

All done!

@fchapoton
Copy link
Contributor

Reviewer: Frédéric Chapoton

@fchapoton
Copy link
Contributor

comment:14

ok, thx

@tscrim
Copy link
Collaborator

tscrim commented Apr 13, 2019

Changed author from Eleni Tzanaki to Eleni Tzanaki, Viviane Pons

@tscrim
Copy link
Collaborator

tscrim commented Apr 13, 2019

comment:15

Viviane, I added you as an author based on comment:9. If you feel you closer to a reviewer, feel free to move yourself over.

@tscrim
Copy link
Collaborator

tscrim commented Apr 13, 2019

Changed reviewer from Frédéric Chapoton to Frédéric Chapoton, Travis Scrimshaw

@vbraun
Copy link
Member

vbraun commented Apr 15, 2019

Changed branch from u/VivianePons/shi_arrangement_for_other_types to b176a2a

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

4 participants