From 94bf289ab9766deb0c78db91712c2b3ad1a9b1e8 Mon Sep 17 00:00:00 2001 From: Lori J Date: Sun, 17 Jan 2016 22:10:19 -0800 Subject: [PATCH] Pmag GUI: fix import step for BGC and PMD type files --- pmag_basic_dialogs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pmag_basic_dialogs.py b/pmag_basic_dialogs.py index 17c69d298..ca09d443d 100755 --- a/pmag_basic_dialogs.py +++ b/pmag_basic_dialogs.py @@ -31,7 +31,7 @@ def InitUI(self): formats = ['generic format','SIO format','CIT format','2G-binary format', 'HUJI format','LDEO format','IODP SRM (csv) format','PMD (ascii) format', - 'TDT format', 'JR6 format'] + 'TDT format', 'JR6 format', "BGC format"] sbs = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, 'step 1: choose file format'), wx.VERTICAL) sbs.AddSpacer(5) @@ -110,9 +110,9 @@ def on_okButton(self,event): elif file_type == 'IODP': dia = convert_IODP_files_to_MagIC(self, self.WD, "PmagPy IODP csv conversion") elif file_type == 'PMD': - dia = convert_PMD_files_to_MagIC(self, self.WD) + dia = convert_PMD_files_to_MagIC(self, self.WD, "PmagPy PMD conversion") elif file_type == 'BGC': - dia = convert_BGC_files_to_magic(self, self.WD) + dia = convert_BGC_files_to_magic(self, self.WD, "PmagPy BGC conversion") elif file_type == 'TDT': import TDT_magic TDT_magic.main(False, self.WD) @@ -2033,7 +2033,7 @@ class convert_BGC_files_to_magic(wx.Frame): """ """ title = "PmagPy BGC file conversion" - def __init__(self, parent, WD): + def __init__(self, parent, WD, title): wx.Frame.__init__(self, parent, wx.ID_ANY, self.title) self.panel = wx.ScrolledWindow(self) self.WD = WD