Skip to content

Conversation

@ssiccha
Copy link
Collaborator

@ssiccha ssiccha commented Jun 18, 2021

This continues #253.

Renames as follows:
RIParent -> ParentRecogNode
methodsforfactor -> methodsforimage
forfactor -> InitDataForImageRecogNode
forkernel -> InitDataForKernelRecogNode

The documentation builds on my machine and I've checked a few cross-references and index entries. Everything looks fine there. testquick.g also passes on my machine.

Edit: I've moved the whole nice generators business into a separate branch.

ssiccha added a commit to ssiccha/recog that referenced this pull request Jun 18, 2021
@codecov
Copy link

codecov bot commented Jun 18, 2021

Codecov Report

Merging #277 (6af8d45) into master (d8c21f1) will increase coverage by 0.00%.
The diff coverage is 71.05%.

❗ Current head 6af8d45 differs from pull request most recent head f462f18. Consider uploading reports for the commit f462f18 to get more accurate results

@@           Coverage Diff           @@
##           master     #277   +/-   ##
=======================================
  Coverage   77.85%   77.86%           
=======================================
  Files          43       43           
  Lines       18394    18398    +4     
=======================================
+ Hits        14321    14325    +4     
  Misses       4073     4073           
Impacted Files Coverage Δ
gap/matrix/matimpr.gi 69.03% <7.69%> (ø)
gap/projective/almostsimple.gi 65.84% <20.00%> (ø)
gap/projective/c6.gi 62.17% <20.00%> (ø)
gap/projective/tensor.gi 56.33% <28.57%> (ø)
gap/projective/c3c5.gi 87.86% <75.00%> (ø)
gap/matrix.gi 94.19% <86.66%> (ø)
gap/projective.gi 83.09% <90.90%> (ø)
gap/base/recognition.gd 100.00% <100.00%> (ø)
gap/base/recognition.gi 69.02% <100.00%> (ø)
gap/generic/KnownNilpotent.gi 97.18% <100.00%> (ø)
... and 2 more

@FriedrichRober
Copy link
Contributor

I am also fine with calling the inner nodes of a recog tree node a "splitting node".

@FriedrichRober
Copy link
Contributor

FriedrichRober commented Jun 18, 2021

@ssiccha, there is a file howtowritearecogmethod.autodoc where the old names are still used, for example forfactor. Is this intended?

Edit: This is probably not intended, as this page is used in the documentation. Probably we do not grep this file in our renaming script.

@FriedrichRober
Copy link
Contributor

Perhaps ParentRecogNode instead of ParentNodeOfRecogNode would be more consistent with the names KernelRecogNode and ImageRecogNode.

@ssiccha
Copy link
Collaborator Author

ssiccha commented Jun 19, 2021

@ssiccha, there is a file howtowritearecogmethod.autodoc where the old names are still used, for example forfactor. Is this intended?

Edit: This is probably not intended, as this page is used in the documentation. Probably we do not grep this file in our renaming script.

I've updated our script. See here:
https://github.com/ssiccha/recog/tree/Improve-Function-Names

@ssiccha ssiccha force-pushed the ss/improve-unify-names-2 branch from fde0c27 to 59ddac1 Compare June 19, 2021 06:24
@ssiccha
Copy link
Collaborator Author

ssiccha commented Jun 19, 2021

Perhaps ParentRecogNode instead of ParentNodeOfRecogNode would be more consistent with the names KernelRecogNode and ImageRecogNode.

Done.

ssiccha added a commit to ssiccha/recog that referenced this pull request Jun 19, 2021
@ssiccha

This comment has been minimized.

@ssiccha
Copy link
Collaborator Author

ssiccha commented Jun 19, 2021

Btw.: I'm seeing whether I can come up with better names for the whole CalcNice... business.

@ssiccha ssiccha force-pushed the ss/improve-unify-names-2 branch 2 times, most recently from 45e7260 to 6bf24d2 Compare June 19, 2021 11:06
Copy link
Member

@wilfwilson wilfwilson left a comment

Choose a reason for hiding this comment

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

Sergio! I'm happy with these four name changes, but you have been a bit overzealous with the search-and-replace of "factor" to "image".

@ssiccha ssiccha force-pushed the ss/improve-unify-names-2 branch 4 times, most recently from 888e9d2 to 95fd513 Compare June 21, 2021 12:13
@fingolfin
Copy link
Member

This needs to be rebased first?

Copy link
Member

@wilfwilson wilfwilson left a comment

Choose a reason for hiding this comment

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

Thanks for making those fixes. But yes, it's rebasing time 🙂

ssiccha added a commit to ssiccha/recog that referenced this pull request Jun 28, 2021
@ssiccha ssiccha force-pushed the ss/improve-unify-names-2 branch from 95fd513 to d03dd8c Compare June 28, 2021 19:34
ssiccha added a commit to ssiccha/recog that referenced this pull request Jun 28, 2021
@ssiccha
Copy link
Collaborator Author

ssiccha commented Jun 28, 2021

Rebased onto master. Let's see whether the test workflows pass.

<Index Key="RIParent"><C>RIParent</C></Index>
<Index Key="methodsforfactor"><C>methodsforfactor</C></Index>
<Index Key="forfactor"><C>forfactor</C></Index>
<Index Key="forkernel"><C>forkernel</C></Index>
Copy link
Member

Choose a reason for hiding this comment

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

Not about this PR, but: why is there a separate index file? Why aren't those index entries directly in renaming_table.xml?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed our script such that the index is also written into the renaming_table.xml.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And I also tested whether the index still works. Everything is fine.

DeclareAttribute( "KernelRecogNode", IsRecogNode, "mutable" );

## <#GAPDoc Label="RIParent">
## <#GAPDoc Label="ParentRecogNode">
Copy link
Member

Choose a reason for hiding this comment

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

These renames potentially break existing code using recog.

Is there a strong reason why we don't use DeclareObsoleteSynonym resp. DeclareObsoleteSynonymAttr for these (and other, previously renamed things)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added synonyms for the renames in this PR and am currently opening a PR for the renames that are already in master.


<ManSection>
<Attr Name="forkernel" Arg="ri"/>
<Attr Name="InitDataForKernelRecogNode" Arg="ri"/>
Copy link
Member

Choose a reason for hiding this comment

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

I was confused by this name as to me init stands for the verb initialize, not for initial or initialization. And that makes for some confusing reading. So perhaps

Suggested change
<Attr Name="InitDataForKernelRecogNode" Arg="ri"/>
<Attr Name="InitialDataForKernelRecogNode" Arg="ri"/>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed the names accordingly.

ssiccha added a commit to ssiccha/recog that referenced this pull request Aug 20, 2021
ssiccha added a commit to ssiccha/recog that referenced this pull request Aug 20, 2021
@ssiccha ssiccha force-pushed the ss/improve-unify-names-2 branch from d03dd8c to b7e75da Compare August 20, 2021 10:55
`RIParent` -> `ParentRecogNode`
`methodsforfactor` -> `methodsforimage`
`forfactor` -> `InitialDataForImageRecogNode`
`forkernel` -> `InitialDataForKernelRecogNode`
@ssiccha ssiccha force-pushed the ss/improve-unify-names-2 branch from b7e75da to f462f18 Compare August 20, 2021 11:00
@ssiccha
Copy link
Collaborator Author

ssiccha commented Aug 20, 2021

I've double-checked the touched files and the links in the generated manual. Everything looks fine so I'm merging this.

@ssiccha ssiccha merged commit 0401141 into gap-packages:master Aug 20, 2021
@ssiccha ssiccha deleted the ss/improve-unify-names-2 branch August 20, 2021 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants