-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up turbine loading operation (#966)
* Instantiate Turbine objects only once for each different type of turbine. * Raise clear error of turbine_type is same but dictionaries do not match * Clean up comments. * Add test to check that turbine_definitions and turbine_map reflect changes as expected. * Use private attribute _turbine_definition_cache throughout. * use factory=dict on attrs attribute to avoid need to assign empty {} * Add factory=list to _turbine_types private attribute to ensure acts as expected.
- Loading branch information
Showing
2 changed files
with
66 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters