Skip to content

Commit

Permalink
Pmag GUI: fix import step for BGC and PMD type files
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshoes87 committed Jan 18, 2016
1 parent 726c1b5 commit 94bf289
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pmag_basic_dialogs.py
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 94bf289

Please sign in to comment.