Converted one core electr macro ($COMPUTE-DRANGE), to Python.
Created test data by adding inputs and output prints to the original mortran/fortran macro and running tutor4.
This Python function output matches all histories of tutor4. However, test data covers only e-, so test coverage missing for half of function. Edit: Now covers e+ also; data collected by temporarily modifying call to shower.
Converted one core
electr
macro ($COMPUTE-DRANGE), to Python.Created test data by adding inputs and output prints to the original mortran/fortran macro and running tutor4.
This Python function output matches all histories of tutor4.
However, test data covers only e-, so test coverage missing for half of function.Edit: Now covers e+ also; data collected by temporarily modifying call to shower.