darcymason / egsnrc2py

GNU Affero General Public License v3.0
4 stars 2 forks source link

Compute drange #17

Closed darcymason closed 3 years ago

darcymason commented 3 years ago

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.