Skip to content

Commit

Permalink
Stop forcing epoch when using HT2 heights
Browse files Browse the repository at this point in the history
  • Loading branch information
tayden committed Apr 14, 2022
1 parent 69368e9 commit bd2517f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions las_trx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ def __init__(self):
self.ui.comboBox_input_coordinates.currentTextChanged.connect(
self.activate_input_utm_zone_picker
)
self.ui.comboBox_output_vertical_reference.currentTextChanged.connect(
self.maybe_force_output_epoch_change
)
self.ui.comboBox_input_vertical_reference.currentTextChanged.connect(
self.maybe_force_input_epoch_change
)
self.ui.toolButton_help.clicked.connect(self.help_msg_box.exec_)

self.dialog_directory = os.path.expanduser("~")
Expand All @@ -88,24 +82,6 @@ def __init__(self):

sync_missing_grid_files()

def maybe_force_input_epoch_change(self, new_in_vd: str):
if new_in_vd == "CGVD28/HT2_2010v70":
self.ui.dateEdit_input_epoch.setDate(date(2010, 1, 1))
self.ui.dateEdit_input_epoch.setEnabled(False)
else:
self.ui.dateEdit_input_epoch.setEnabled(True)

def maybe_force_output_epoch_change(self, new_out_vd: str):
if new_out_vd == "CGVD28/HT2_2010v70":
self.ui.checkBox_epoch_trans.setChecked(True)
self.ui.checkBox_epoch_trans.setEnabled(False)
self.ui.dateEdit_output_epoch.setDate(date(2010, 1, 1))
self.ui.dateEdit_output_epoch.setEnabled(False)
else:
self.ui.checkBox_epoch_trans.setEnabled(True)
if self.ui.checkBox_epoch_trans.isChecked():
self.ui.dateEdit_output_epoch.setEnabled(True)

def maybe_update_output_epoch(self, new_date: date):
if not self.ui.checkBox_epoch_trans.isChecked():
self.ui.dateEdit_output_epoch.setDate(new_date)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "las-trx"
version = "0.2.0"
version = "0.2.1"
description = ""
authors = ["Taylor Denouden <[email protected]>"]

Expand Down

0 comments on commit bd2517f

Please sign in to comment.