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

added irrchars and classes methods for tables #40

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

SoongNoonien
Copy link
Member

@fingolfin Is this what you meant in #16?

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.07%. Comparing base (badfcec) to head (fd1bcf4).

Additional details and impacted files
@@            Coverage Diff            @@
##           master     #40      +/-   ##
=========================================
+ Coverage    7.03%   7.07%   +0.04%     
=========================================
  Files          60      60              
  Lines        8870    8874       +4     
=========================================
+ Hits          624     628       +4     
  Misses       8246    8246              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SoongNoonien
Copy link
Member Author

The names are not ideal, see #41. But I don't know better names right now.

```
"""
function irrchars(t::Table)
return sum(nrchars.(Ref(t), 1:irrchartypes(t)))
Copy link
Member

Choose a reason for hiding this comment

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

TIL one can use Ref like that in a broadcast, nice :-)

src/Show.jl Outdated
@@ -49,6 +49,26 @@ function irrchartypes(t::Table)
return t.table.original_m
end

"""
irrchars(t::Table)
Copy link
Member

Choose a reason for hiding this comment

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

I would just call this nrchars as well.

And irrchartypes should be nirrchartypes(or rather in OSCAR style:n_irrchartypes-- or evennumber_of_irreducible_character_types` or whatever... )

src/Show.jl Outdated
@@ -67,6 +87,24 @@ function classtypes(t::Table)
size(t.table, 2)
end

"""
classes(t::Table)
Copy link
Member

Choose a reason for hiding this comment

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

As above I'd just call this nrclasses as well

And eventually rename both to n_classes, and classtypes to n_classtypes -- but please not in this PR, this needs to be carefully coordinated.

@fingolfin
Copy link
Member

I've resolved the conflicts and updated this to look like I meant.

But I am now not so sure this is a good idea. Isn't it true that some of the character/class types may not be disjoint? At least that's how I read the CHEVIE paper from 1996. ...

Anyway I don't need this right now, I can try to talk with e.g. Gunter Malle about this (I want to do that anyway for a bunch of things in this code)

@SoongNoonien
Copy link
Member Author

But I am now not so sure this is a good idea. Isn't it true that some of the character/class types may not be disjoint? At least that's how I read the CHEVIE paper from 1996. ...

I don't know, I thought that this is not the case if we consider the parameter exceptions which is done here.

@SoongNoonien
Copy link
Member Author

Should we wait with the merge until it is clear if we are counting some characters twice?

@SoongNoonien
Copy link
Member Author

I've talked to Gunter Malle today and he thinks this should be fine, so now characters/classes are be counted multiple times.

@SoongNoonien SoongNoonien merged commit 4a86b7f into oscar-system:master Apr 9, 2024
7 checks passed
@SoongNoonien SoongNoonien deleted the count_chars_classes branch April 16, 2024 12:27
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.

2 participants