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

Enhancements and fixes #34

Closed rajeee closed 10 months ago

rajeee commented 10 months ago

Pull Request Description

Couple of features and fixes

  1. Add get_nonzero_count flag to annual aggregation query. This will generate additional columns that counts the number of buildings with non-zero usage for the listed enduses. It is useful, for example, to find the number of natural gas consuming houses.
  2. Add athena_query_reuse flag to the BuildStockQuery initialization. When set to False (default is true), Athena will not use cached query result; it will run a new query. This is useful when the underlying s3 data, or the glue data catalog (datatype) has been changed.
  3. Type hint fixes.