svalinn / dagmc_stats

Tool for calculating and reporting statistics about DAGMC models
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Develop a class to contain all the statistics #69

Closed gonuke closed 3 years ago

gonuke commented 3 years ago

As this project has grown, a wide variety of statistics are now being collected and stored in various tables. Some of these are created in methods and only persist while they are being used. This introduces the possibility that they may need to be generated multiple times as they go in and out of scope, or that they are generated multiple times and exist simultaneously.

By refactoring much of this into a class, the tables (of whatever type: numpy arrays, pandas dataframes, etc) can exist as members of that class and be accessible to all the functions to access the data and update the tables.