This file contains hidden or 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
| # Modify cplus.gui.component_item_model.py | |
| class ComponentItemModel(QtGui.QStandardItemModel): | |
| """View model for ModelComponent objects.""" | |
| def __init__(self, parent=None, is_checkable=False): | |
| super().__init__(parent) | |
| self.setColumnCount(1) | |
| # Added in v1.1.18 |
This file contains hidden or 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
| # Definitions in cplus.definitions.defaults.py | |
| YEARS_EXPERIENCE_ID = "years_experience" | |
| YEARS_EXPERIENCE_NAME = "Years of Experience" | |
| # cplus.lib.constant_raster.py creates an application-wide registry | |
| constant_raster_registry = ConstantRasterRegistry() | |
| # cplus.main.py to register different constant raster collections | |
| from cplus.lib.constant_raster import ConstantRasterMetadata, constant_raster_registry | |
| from cplus.model.constant_raster import ConstantRasterCollection |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """ | |
| Contains functions for carbon calculations. | |
| """ | |
| from functools import partial | |
| import math | |
| from numbers import Number | |
| import os | |
| import typing |