InfrastructureSystems.jl icon indicating copy to clipboard operation
InfrastructureSystems.jl copied to clipboard

add function to get random seed

Open jd-lara opened this issue 8 months ago • 3 comments

This is a step to make sure that over the whole platform the same random seed is used and allows the user to create an ENV variable for reproducibility if they want to.

jd-lara avatar Mar 28 '25 02:03 jd-lara

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.16%. Comparing base (711caa4) to head (9e83894). Report is 13 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #457      +/-   ##
==========================================
+ Coverage   77.79%   79.16%   +1.36%     
==========================================
  Files          71       72       +1     
  Lines        5818     5744      -74     
==========================================
+ Hits         4526     4547      +21     
+ Misses       1292     1197      -95     
Flag Coverage Δ
unittests 79.16% <100.00%> (+1.36%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/InfrastructureSystems.jl 55.55% <ø> (ø)
src/random_seed.jl 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Mar 28 '25 02:03 codecov[bot]

If we go with this approach, might be convenient to have a setter too.

GabrielKS avatar Mar 31 '25 19:03 GabrielKS

If we go with this approach, might be convenient to have a setter too.

I don't think that we can set a env variable from a function like this

jd-lara avatar Apr 02 '25 17:04 jd-lara