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

Refactor random.jl in generator/formula.jl and generator/random.jl #31

Open
wants to merge 25 commits into
base: dev
Choose a base branch
from

Conversation

mauro-milella
Copy link
Collaborator

Adjust docstrings, separate formula and model generations, add more robust tests

@mauro-milella
Copy link
Collaborator Author

I found an old TODO and I resolved it (partially): now, randformula is enriched with a new keyword argument alphabet_sample_kwargs.

When a non-finite alphabet is given to randformula, execution is not aborted if alphabet_sample_kwargs is provided.
Wouldn't it be better to simply pass an atoms vector as “alphabet” field?

…ith Base.rand. Now, tests/random.jl is splitted in tests/generator/formula.jl and tests/generator/models.jl
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 77.11864% with 27 lines in your changes missing coverage. Please review.

Project coverage is 54.29%. Comparing base (cdf7b1a) to head (188cb24).

Files with missing lines Patch % Lines
src/generation/formula.jl 73.95% 25 Missing ⚠️
src/generation/utils.jl 84.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #31      +/-   ##
==========================================
+ Coverage   53.05%   54.29%   +1.24%     
==========================================
  Files          43       45       +2     
  Lines        2980     2978       -2     
==========================================
+ Hits         1581     1617      +36     
+ Misses       1399     1361      -38     

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

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.

1 participant