diff --git a/locale/en_US/LC_MESSAGES/django.mo b/locale/en_US/LC_MESSAGES/django.mo index 5ac22d4f18..969638ad05 100644 Binary files a/locale/en_US/LC_MESSAGES/django.mo and b/locale/en_US/LC_MESSAGES/django.mo differ diff --git a/locale/en_US/LC_MESSAGES/django.po b/locale/en_US/LC_MESSAGES/django.po index 2cdb5c33ba..a1842105be 100644 --- a/locale/en_US/LC_MESSAGES/django.po +++ b/locale/en_US/LC_MESSAGES/django.po @@ -3401,8 +3401,8 @@ msgstr "There is also a link to the SEED-Platform Users forum, where you can con msgid "There was an error loading the page" msgstr "There was an error loading the page" -msgid "This action replaces any of your current columns with the comma-delmited columns you provided. Would you like to continue?" -msgstr "This action replaces any of your current columns with the comma-delmited columns you provided. Would you like to continue?" +msgid "This action replaces any of your current columns with the comma-delimited columns you provided. Would you like to continue?" +msgstr "This action replaces any of your current columns with the comma-delimited columns you provided. Would you like to continue?" msgid "This action updates properties within the selected cycle with data from the Audit Template account associated with this organization. Only Properties with Audit Template Building IDs corresponding to those saved in Audit Template will be updated." msgstr "This action updates properties within the selected cycle with data from the Audit Template account associated with this organization. Only Properties with Audit Template Building IDs corresponding to those saved in Audit Template will be updated." diff --git a/locale/fr_CA/LC_MESSAGES/django.mo b/locale/fr_CA/LC_MESSAGES/django.mo index 73c349a566..581b1fb6a6 100644 Binary files a/locale/fr_CA/LC_MESSAGES/django.mo and b/locale/fr_CA/LC_MESSAGES/django.mo differ diff --git a/locale/fr_CA/LC_MESSAGES/django.po b/locale/fr_CA/LC_MESSAGES/django.po index b0f9587bb8..085ccd3808 100644 --- a/locale/fr_CA/LC_MESSAGES/django.po +++ b/locale/fr_CA/LC_MESSAGES/django.po @@ -3427,7 +3427,7 @@ msgstr "Il y a aussi un lien vers le forum SEED-Platform Users, où vous pouvez msgid "There was an error loading the page" msgstr "Une erreur s'est produite lors du chargement de la page" -msgid "This action replaces any of your current columns with the comma-delmited columns you provided. Would you like to continue?" +msgid "This action replaces any of your current columns with the comma-delimited columns you provided. Would you like to continue?" msgstr "Cette action remplace n'importe laquelle de vos colonnes actuelles par les colonnes délimitées par des virgules que vous avez fournies. Voulez-vous continuer?" msgid "This action updates properties within the selected cycle with data from the Audit Template account associated with this organization. Only Properties with Audit Template Building IDs corresponding to those saved in Audit Template will be updated." diff --git a/seed/analysis_pipelines/better/pipeline.py b/seed/analysis_pipelines/better/pipeline.py index 4f71adc075..d19042de02 100644 --- a/seed/analysis_pipelines/better/pipeline.py +++ b/seed/analysis_pipelines/better/pipeline.py @@ -562,7 +562,7 @@ def _process_results(self, analysis_id): for data_path in column_data_paths: value = get_json_path(data_path.json_path, raw_better_results) if value is not None: - # some of the ee_measures return an empty string, which should be falsey + # some of the ee_measures return an empty string, which should be falsy if 'ee_measures' in data_path.json_path and value == '': value = 0.0 * data_path.unit_multiplier # to be consistent else: diff --git a/seed/analysis_pipelines/bsyncr.py b/seed/analysis_pipelines/bsyncr.py index 37965ecbb7..e367ae31d0 100644 --- a/seed/analysis_pipelines/bsyncr.py +++ b/seed/analysis_pipelines/bsyncr.py @@ -323,7 +323,7 @@ def _parse_analysis_property_view_id(filepath): analysis_property_view_id_elem = input_file_tree.xpath(id_xpath, namespaces=NAMESPACES) if len(analysis_property_view_id_elem) != 1: - raise AnalysisPipelineException(f'Expected BuildlingSync file to have exactly one "{PREMISES_ID_NAME}" PremisesIdentifier') + raise AnalysisPipelineException(f'Expected BuildingSync file to have exactly one "{PREMISES_ID_NAME}" PremisesIdentifier') return int(analysis_property_view_id_elem[0].text) diff --git a/seed/building_sync/building_sync.py b/seed/building_sync/building_sync.py index 5ebe3ccf1f..be1d5b7fc9 100644 --- a/seed/building_sync/building_sync.py +++ b/seed/building_sync/building_sync.py @@ -485,7 +485,7 @@ def _parse_version(self): if not bsync_element.tag.endswith('BuildingSync'): raise ParsingError('Expected BuildingSync element as root element in xml') - # first check for a version attribute in the buldingsync tag + # first check for a version attribute in the buildingsync tag if "version" in bsync_element.attrib: return bsync_element.attrib["version"] diff --git a/seed/building_sync/tests/test_mappings.py b/seed/building_sync/tests/test_mappings.py index f18fc21256..aea71522f4 100644 --- a/seed/building_sync/tests/test_mappings.py +++ b/seed/building_sync/tests/test_mappings.py @@ -230,7 +230,7 @@ def test_update_tree_changes_text_on_existing_element(self): # tree should remain valid as well after inserting self.xmlschema.validate(etree.tostring(self.tree).decode()) - def test_update_tree_changes_text_on_nonexisting_element(self): + def test_update_tree_changes_text_on_nonexistent_element(self): # -- Setup # auc:PremisesName does not exist in the tree xpath = '/'.join([ diff --git a/seed/data_importer/match.py b/seed/data_importer/match.py index ead0908dad..a273d7b82f 100644 --- a/seed/data_importer/match.py +++ b/seed/data_importer/match.py @@ -442,7 +442,7 @@ def filter_duplicate_states(unmatched_states, sub_progress_key): elif len(present_ali_ids) == 1: canonical_state = states_with_ali[0] - # More than one ali was speficied! all are of these duplicates are invalid + # More than one ali was specified! all are of these duplicates are invalid else: errors_state_ids += [s["id"] for s in states] continue diff --git a/seed/data_importer/tests/integration/test_data_import.py b/seed/data_importer/tests/integration/test_data_import.py index 1756f2888d..e0448f2824 100644 --- a/seed/data_importer/tests/integration/test_data_import.py +++ b/seed/data_importer/tests/integration/test_data_import.py @@ -530,7 +530,7 @@ def test_promote_properties(self): # For some reason if you comment out the next two test cases (TestMappingPropertiesOnly and # TestMappingTaxLotsOnly), the test_views_matching.py file will fail. I cannot figure out -# what is causing this and it is really annoying. Inherenting from DataMappingBaseTestCase +# what is causing this and it is really annoying. Inheriting from DataMappingBaseTestCase # will delete all the model data upon completion, Maybe because FAKE_MAPPINGS # is not a copy, rather a pointer? diff --git a/seed/data_importer/tests/test_mapping.py b/seed/data_importer/tests/test_mapping.py index 99d544691d..8a9c5535c3 100644 --- a/seed/data_importer/tests/test_mapping.py +++ b/seed/data_importer/tests/test_mapping.py @@ -261,7 +261,7 @@ def test_mapping_takes_into_account_selected_units(self): self.assertAlmostEqual(state.gross_floor_area, (100 * ureg('m**2')).to('ft**2')) -class TestMappingAcccessLevelInstance(DataMappingBaseTestCase): +class TestMappingAccessLevelInstance(DataMappingBaseTestCase): def setUp(self): selfvars = self.set_up(ASSESSED_RAW) self.user, self.org, self.import_file, self.import_record, self.cycle = selfvars diff --git a/seed/lib/mcm/reader.py b/seed/lib/mcm/reader.py index e88395a3da..bf34833a28 100644 --- a/seed/lib/mcm/reader.py +++ b/seed/lib/mcm/reader.py @@ -400,7 +400,7 @@ def XLSDictReader(self, sheet, header_row=0): :param sheet: xlrd Sheet :param header_row: the row index to start with - :returns: Generator yeilding a row as Dict + :returns: Generator yielding a row as Dict """ # save off the headers into a member variable. Only do this once. If XLSDictReader is diff --git a/seed/lib/merging/merging.py b/seed/lib/merging/merging.py index 0b95319d83..834043b215 100644 --- a/seed/lib/merging/merging.py +++ b/seed/lib/merging/merging.py @@ -239,8 +239,8 @@ def merge_state(merged_state, state1, state2, priorities, ignore_merge_protectio state2_present_columns ) - deafult_ali = state1.raw_access_level_instance - merged_state.raw_access_level_instance = deafult_ali if deafult_ali is not None else state2.raw_access_level_instance + default_ali = state1.raw_access_level_instance + merged_state.raw_access_level_instance = default_ali if default_ali is not None else state2.raw_access_level_instance # merge measures, scenarios, simulations if isinstance(merged_state, PropertyState): diff --git a/seed/lib/superperms/orgs/models.py b/seed/lib/superperms/orgs/models.py index 29778f9fbe..6c4779350b 100644 --- a/seed/lib/superperms/orgs/models.py +++ b/seed/lib/superperms/orgs/models.py @@ -463,7 +463,7 @@ def _assert_alns_are_valid(org): alns = org.access_level_names if len(set(alns)) != len(alns): # if not unique - raise ValueError("Organiation's access_level_names must be unique.") + raise ValueError("Organization's access_level_names must be unique.") columns_with_same_names = Column.objects.filter(organization=org, display_name__in=alns) if columns_with_same_names.count() > 0: diff --git a/seed/models/certification.py b/seed/models/certification.py index d3b3998f1d..d7f6bd37e0 100644 --- a/seed/models/certification.py +++ b/seed/models/certification.py @@ -26,12 +26,12 @@ ) from seed.utils.strings import titlecase -DEFAULT_GREEN_ASSESSEMENT_VALIDITY_DURATION = getattr( +DEFAULT_GREEN_ASSESSMENT_VALIDITY_DURATION = getattr( settings, 'GREEN_ASSESSMENT_DEFAULT_VALIDITY_DURATION', None ) -if DEFAULT_GREEN_ASSESSEMENT_VALIDITY_DURATION: - DEFAULT_GREEN_ASSESSEMENT_VALIDITY_DURATION = datetime.timedelta( - DEFAULT_GREEN_ASSESSEMENT_VALIDITY_DURATION +if DEFAULT_GREEN_ASSESSMENT_VALIDITY_DURATION: + DEFAULT_GREEN_ASSESSMENT_VALIDITY_DURATION = datetime.timedelta( + DEFAULT_GREEN_ASSESSMENT_VALIDITY_DURATION ) # logger = logging.getLogger(__name__) @@ -91,7 +91,7 @@ def __str__(self): is_integer_score = models.BooleanField(default=True) validity_duration = models.DurationField( null=True, blank=True, - default=DEFAULT_GREEN_ASSESSEMENT_VALIDITY_DURATION + default=DEFAULT_GREEN_ASSESSMENT_VALIDITY_DURATION ) class Meta: diff --git a/seed/models/data_views.py b/seed/models/data_views.py index 7417d90974..4b518f544b 100644 --- a/seed/models/data_views.py +++ b/seed/models/data_views.py @@ -67,7 +67,7 @@ def evaluate(self, columns, user_ali): # 'Average': 123, # 'Count': 123, # 'Maximum': 123, - # 'Minumum': 123, + # 'Minimum': 123, # 'Sum': 123, # 'views_by_default_field: { # view.state.default_field || state.id: 123, @@ -223,7 +223,7 @@ def _evaluate_extra_data(self, states, aggregation, column): return round(type_to_aggregate[aggregation], 2) def _evaluate_derived_column(self, states, aggregation, column): - # to evluate a derived_column: DerivedColumn.evaluate(propertyState) + # to evaluate a derived_column: DerivedColumn.evaluate(propertyState) values = [] for state in states: diff --git a/seed/serializers/data_views.py b/seed/serializers/data_views.py index b5dc9873c5..78cf9c1406 100644 --- a/seed/serializers/data_views.py +++ b/seed/serializers/data_views.py @@ -53,11 +53,11 @@ def update(self, instance, validated_data): instance.save() # if new parameters are provided, delete previous ones so we can create the new params - paramters_data = validated_data.get('parameters') - if paramters_data: + parameters_data = validated_data.get('parameters') + if parameters_data: DataViewParameter.objects.filter(data_view=instance).delete() - for parameter in paramters_data: + for parameter in parameters_data: DataViewParameter.objects.create(data_view=instance, **parameter) return instance diff --git a/seed/serializers/goals.py b/seed/serializers/goals.py index d62938611f..15c4952289 100644 --- a/seed/serializers/goals.py +++ b/seed/serializers/goals.py @@ -30,7 +30,7 @@ def validate(self, data): raise ValidationError('Cycles must be unique.') if baseline_cycle.end > current_cycle.end: - raise ValidationError('Baseline Cycle must preceed Current Cycle.') + raise ValidationError('Baseline Cycle must precede Current Cycle.') if not all([ getattr(baseline_cycle, 'organization', None) == organization, @@ -39,7 +39,7 @@ def validate(self, data): ]): raise ValidationError('Organization mismatch.') - # non Null columns must be uniuqe + # non Null columns must be unique eui_columns = [data.get('eui_column1'), data.get('eui_column2'), data.get('eui_column3')] unique_columns = {column for column in eui_columns if column is not None} if len(unique_columns) < len([column for column in eui_columns if column is not None]): diff --git a/seed/static/seed/js/controllers/column_mappings_controller.js b/seed/static/seed/js/controllers/column_mappings_controller.js index 770d5fe16c..c36e082b98 100644 --- a/seed/static/seed/js/controllers/column_mappings_controller.js +++ b/seed/static/seed/js/controllers/column_mappings_controller.js @@ -374,7 +374,7 @@ angular.module('BE.seed.controller.column_mappings', []).controller('column_mapp '