NREL / buildstock-query

BuildStockQuery is a python library for querying datasets generated by ResStock™ and ComStock™.
https://nrel.github.io/buildstock-query/
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Assume upgrades are string #45

Closed rajeee closed 5 months ago

rajeee commented 5 months ago

Resolves #[issue number here].

Pull Request Description

BuildstockQuery internals had a pretty loose handling of upgrade numbers - they were used interchangably as strings and integers. This doesn't work for upgrades in largeee which use <category_number>.<upgrade_number> style of upgrade numbering, which must be handled as either string or float. This PR cleans up the code to handle the upgrade as string.