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

Fix GreensXClasses for a Green's class #2830

Merged

Conversation

wilfwilson
Copy link
Member

@wilfwilson wilfwilson commented Sep 19, 2018

Previously, there was undocumented and broken support for computing the GreensXClasses (where X is in {H, L, R} contained in a particular type of Green's class. This arose from the following issue on the Semigroups package issue tracker: semigroups/Semigroups#413

I have now made a simple fix, and documented this behaviour (it doesn't have brilliant performance, but it is better than an error).

@wilfwilson wilfwilson added kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: documentation Issues and PRs related to documentation kind: bug: unexpected error Issues describing bugs in which computation unexpectedly encounters an error, and PRs fixing them release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes gapdays2018-fall Issues and PRs that arose at https://www.gapdays.de/gapdays2018-fall labels Sep 19, 2018
@codecov
Copy link

codecov bot commented Sep 19, 2018

Codecov Report

Merging #2830 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2830      +/-   ##
==========================================
+ Coverage   76.05%   76.05%   +<.01%     
==========================================
  Files         480      480              
  Lines      241022   241022              
==========================================
+ Hits       183310   183311       +1     
+ Misses      57712    57711       -1
Impacted Files Coverage Δ
lib/semirel.gi 70.86% <100%> (ø) ⬆️
hpcgap/lib/hpc/stdtasks.g 63.93% <0%> (-0.26%) ⬇️
src/hpc/threadapi.c 43.55% <0%> (+0.1%) ⬆️
src/stats.c 95.47% <0%> (+0.19%) ⬆️

lib/semirel.gd Outdated
## <Attr Name="GreensLClasses" Arg='S'/>
## <Attr Name="GreensHClasses" Arg='S'/>
## <Attr Name="GreensJClasses" Arg='S'/>
## <Attr Name="GreensDClasses" Arg='S'/>
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure the rationale behind using " and ' here?

lib/semirel.gi Outdated
@@ -720,13 +720,13 @@ function(semi)
end);

InstallOtherMethod(GreensHClasses, "for a Green's Class", true, [IsGreensDClass], 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be better to DeclareAttribute("GreensHClasses", IsGreensDClass); and drop the Other here, but maybe there is some reason I don't know for doing it this way.

Also I believe the true and the 0 are redundant, and could be removed.

Previously, there was undocumented and broken support
for computing the GreensXClasses of a Green's class.
I have now fixed and documented this code.
@wilfwilson wilfwilson force-pushed the fix-greens-classes-for-a-greens-class branch from 7285f12 to 8d04adf Compare September 19, 2018 13:12
@wilfwilson
Copy link
Member Author

Thank you for reviewing @james-d-mitchell

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

Seems fine, James is happy -- please merge if you are happy with it as-is

@wilfwilson
Copy link
Member Author

@fingolfin: I am happy with it as-is. @james-d-mitchell revoked his write access to GAP, and I never had write access, so it'll have to be merged by someone else.

@fingolfin fingolfin merged commit 633f456 into gap-system:master Sep 20, 2018
@wilfwilson wilfwilson deleted the fix-greens-classes-for-a-greens-class branch September 20, 2018 13:47
@fingolfin fingolfin added the kind: bug Issues describing general bugs, and PRs fixing them label Mar 21, 2019
@wilfwilson wilfwilson added release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Apr 24, 2019
@olexandr-konovalov olexandr-konovalov added this to the GAP 4.11.0 milestone Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gapdays2018-fall Issues and PRs that arose at https://www.gapdays.de/gapdays2018-fall kind: bug: unexpected error Issues describing bugs in which computation unexpectedly encounters an error, and PRs fixing them kind: bug Issues describing general bugs, and PRs fixing them kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements release notes: added PRs introducing changes that have since been mentioned in the release notes topic: documentation Issues and PRs related to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants