EnergyInnovation / eps-us

Energy Policy Simulator - United States
GNU General Public License v3.0
22 stars 7 forks source link

Rename Quantization Size Variables #60

Closed jrissman closed 4 years ago

jrissman commented 4 years ago

The EPS has a variety of "Quantization Size" variables used in QUANTUM functions to dampen rounding error, and sometimes for other purposes, such as to prevent there from existing fractional vehicles. When a model developer needs to implement a new quantized metric and doesn't know if the relevant quantization size variable already exists of not, it is bothersome to search for it, as Vensim only allows you to search for variables based on the start of the name, not characters anywhere in the name. The quantization size variables don't all appear in the Acronym Key (as some are hard-coded), so looking in the Acronym Key isn't a solution. Renaming them to all begin (rather than end) with the words "Quantization Size" will cause them to sort together in Vensim's "Find" dialogue box, making it possible to quickly determine whether a given quantization size variable exists or not.

For example, the variable "Human Lives Quantization Size" would be renamed "Quantization Size for Human Lives"

This fix is primarily useful for a model developer doing structural model edits and will have no meaningful impact on model users.

jrissman commented 4 years ago

Completed in 7628cf9.