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

adjusted JuliaExperimental to the new conversion rules #170

Merged
merged 1 commit into from
Nov 23, 2018

Conversation

ThomasBreuer
Copy link
Member

  • adjusted the function calls to the new rules (from pull request Work on conversion #160),
    removed or simplified the relevant code
  • removed gap/record.g since the code is now obsolete;
    moved the contents of tst/record.tst to JuliaInterface/tst/convert.tst
  • changed the auxiliary dictionaries to use symbols as keys,
    in order to use the default conversions
  • adjusted some Julia code which worked only in pre-1.0 versions

After these changes, the JuliaExperimental tests should work,
thus the automatic test runs can be reactivated.

(Currently I am rewriting the whole package JuliaExperimental,
a pull request for that will be available on Monday.)

- adjusted the function calls to the new rules (from pull request oscar-system#160),
  removed or simplified the relevant code
- removed `gap/record.g` since the code is now obsolete;
  moved the contents of `tst/record.tst` to `JuliaInterface/tst/convert.tst`
- changed the auxiliary dictionaries to use symbols as keys,
  in order to use the default conversions
- adjusted some Julia code which worked only in pre-1.0 versions

After these changes, the JuliaExperimental tests should work,
thus the automatic test runs can be reactivated.

(Currently I am rewriting the whole package JuliaExperimental,
a pull request for that will be available on Monday.)
@codecov
Copy link

codecov bot commented Nov 23, 2018

Codecov Report

Merging #170 into master will increase coverage by 17.37%.
The diff coverage is 64.54%.

@@            Coverage Diff             @@
##           master    #170       +/-   ##
==========================================
+ Coverage   54.72%   72.1%   +17.37%     
==========================================
  Files          37      43        +6     
  Lines        1683    2294      +611     
==========================================
+ Hits          921    1654      +733     
+ Misses        762     640      -122
Impacted Files Coverage Δ
JuliaExperimental/read.g 94.11% <ø> (-5.89%) ⬇️
JuliaExperimental/julia/singular.jl 0% <0%> (ø) ⬆️
JuliaExperimental/gap/zlattice.g 18.75% <0%> (ø)
JuliaExperimental/julia/zlattice.jl 0% <0%> (ø) ⬆️
JuliaExperimental/julia/gapperm.jl 82.6% <100%> (+82.6%) ⬆️
JuliaExperimental/gap/realcyc.g 84.61% <100%> (ø)
JuliaExperimental/julia/hnf.jl 66.66% <100%> (+66.66%) ⬆️
JuliaExperimental/gap/utils.gi 100% <100%> (ø) ⬆️
JuliaExperimental/gap/numfield.g 80.29% <72.97%> (ø)
JuliaExperimental/gap/hnf.g 93.93% <83.33%> (ø)
... and 15 more

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.

Thanks, looks great to me!

end );

InstallMethod( \^, [ IsInt, IsExtPerm ], function( i, p )
return ConvertedFromJulia( Julia.Base.("^")( ConvertedToJulia( i ), p![1] ) );
return JuliaToGAP( IsInt, Julia.Base.("^")( GAPToJulia( i ), p![1] ) );
Copy link
Member

Choose a reason for hiding this comment

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

By the way (not for this PR, but perhaps a future update of this code): you can write Base.\^, and the resulting code will be slight more efficient, as it will directly code the right rnam, instead of creating a temporary string and then turning it into an rnam via a hash table lookup in the GAP kernel. For bigger computations, all these temporary objects can add up to a significant extra load.

Copy link
Member Author

Choose a reason for hiding this comment

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

@fingolfin Thanks for this hint.
This remark should become part of the documentation,
once there is a place for it.

@sebasguts sebasguts merged commit 4451768 into oscar-system:master Nov 23, 2018
@ThomasBreuer ThomasBreuer deleted the TB_adjust_to_conversion branch August 27, 2024 09:12
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.

3 participants