From 5163a33ccbd76f163385ed8e0626d0d02fe4e32d Mon Sep 17 00:00:00 2001 From: Paolo Tormene Date: Mon, 16 Dec 2019 11:27:47 +0100 Subject: [PATCH] Fix some comments [skip CI] --- svir/dialogs/load_dmg_by_asset_as_layer_dialog.py | 2 +- svir/dialogs/load_hcurves_as_layer_dialog.py | 3 ++- svir/dialogs/load_uhs_as_layer_dialog.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/svir/dialogs/load_dmg_by_asset_as_layer_dialog.py b/svir/dialogs/load_dmg_by_asset_as_layer_dialog.py index 700f89439..d92b27db0 100644 --- a/svir/dialogs/load_dmg_by_asset_as_layer_dialog.py +++ b/svir/dialogs/load_dmg_by_asset_as_layer_dialog.py @@ -174,7 +174,7 @@ def get_field_types(self, **kwargs): self.default_field_name = "%s_%s_mean" % ( self.loss_type_cbx.currentText(), self.dmg_state_cbx.currentText()) - # FIXME: check if it's ok to have all numeric fields + # NOTE: assuming that all fields are numeric field_types = {field_name: 'F' for field_name in field_names} return field_types diff --git a/svir/dialogs/load_hcurves_as_layer_dialog.py b/svir/dialogs/load_hcurves_as_layer_dialog.py index 8bde18d8e..3e8773b9a 100644 --- a/svir/dialogs/load_hcurves_as_layer_dialog.py +++ b/svir/dialogs/load_hcurves_as_layer_dialog.py @@ -108,7 +108,8 @@ def get_field_types(self, **kwargs): continue for iml in self.dataset[rlz_or_stat][imt].dtype.names: field_name = "%s_%s_%s" % (rlz_or_stat, imt, iml) - field_types[field_name] = 'F' # FIXME: check if type is ok + # NOTE: assuming that all fields are numeric + field_types[field_name] = 'F' return field_types def on_iml_changed(self): diff --git a/svir/dialogs/load_uhs_as_layer_dialog.py b/svir/dialogs/load_uhs_as_layer_dialog.py index 665495ab7..eb4564b42 100644 --- a/svir/dialogs/load_uhs_as_layer_dialog.py +++ b/svir/dialogs/load_uhs_as_layer_dialog.py @@ -102,7 +102,7 @@ def get_field_types(self, **kwargs): field_names.extend([ "%s_%s" % (rlz_or_stat, imt) for imt in self.dataset[rlz_or_stat][poe].dtype.names]) - # FIXME: check that all fields are numeric + # NOTE: assuming that all fields are numeric field_types = {field_name: 'F' for field_name in field_names} return field_types