Skip to content

Commit

Permalink
Fixed DP4 output path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KristapsE committed May 8, 2020
1 parent 4ff449e commit c3a0875
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DP4.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def MakeOutput(DP4Data, Isomers, Settings):

else:

out = open(Settings.OutputFolder + "/" + str(Settings.InputFiles[0] + "NMR.dp4"), "w+")
out = open(os.path.join(Settings.OutputFolder, str(Settings.InputFiles[0] + "NMR.dp4")), "w+")

out.write(DP4Data.output)

Expand Down
10 changes: 5 additions & 5 deletions PyDP4_GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ def addplottabs(self):
self.tabs.addTab(self.tab2, "Proton Plot")
self.tabs.addTab(self.tab3, "Carbon Plot")

self.Tab2 = ProtonPlotTab()
self.Tab3 = CarbonPlotTab()
self.Tab4 = StatsTab()
self.Tab5 = ConformerTab()

if 's' in ui.table_widget.Tab1.settings.Workflow:
self.tabs.addTab(self.tab4, "Stats")
self.tab4.layout = QtWidgets.QVBoxLayout(self)
Expand All @@ -83,11 +88,6 @@ def addplottabs(self):

self.tabs.addTab(self.tab5, "Conformers")

self.Tab2 = ProtonPlotTab()
self.Tab3 = CarbonPlotTab()
self.Tab4 = StatsTab()
self.Tab5 = ConformerTab()

self.tab2.layout = QtWidgets.QVBoxLayout(self)
self.tab2.layout.addWidget(self.Tab2)
self.tab2.setLayout(self.tab2.layout)
Expand Down

0 comments on commit c3a0875

Please sign in to comment.