Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Conversation

sritchie
Copy link
Member

@sritchie sritchie commented Mar 20, 2022

  • Add explicit compilation mode to compile-state-fn #497:

    • sicmutils.expression.compile/compile-state-fn and its non-memoized version
      can now take an explicit :mode argument; this will override the
      dynamically bound *mode*.

      Invalid modes supplied via :mode will cause compile-state-fn to throw an
      exception.

    • Fixes a bug where non-numeric operations up and down were applied at
      compile time, throwing an error.

@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2022

Codecov Report

Merging #497 (0cc0fc0) into main (7b6f732) will increase coverage by 0.00%.
The diff coverage is 96.66%.

@@           Coverage Diff           @@
##             main     #497   +/-   ##
=======================================
  Coverage   86.51%   86.52%           
=======================================
  Files         102      102           
  Lines       14576    14580    +4     
  Branches      768      770    +2     
=======================================
+ Hits        12611    12615    +4     
+ Misses       1197     1195    -2     
- Partials      768      770    +2     
Impacted Files Coverage Δ
src/sicmutils/expression/compile.cljc 89.54% <96.66%> (+1.11%) ⬆️
src/sicmutils/numsymb.cljc 92.46% <0.00%> (-0.67%) ⬇️
src/sicmutils/rational_function.cljc 80.61% <0.00%> (+0.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b6f732...0cc0fc0. Read the comment docs.

@sritchie sritchie merged commit 4ddd4da into main Mar 20, 2022
@sritchie sritchie deleted the sritchie/explicit_mode branch March 20, 2022 08:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants