Skip to content

Commit

Permalink
Fixed MolDyn doctest
Browse files Browse the repository at this point in the history
Refs #10391
  • Loading branch information
DanNixon committed Oct 21, 2014
1 parent b5d9853 commit 623bcb8
Showing 1 changed file with 7 additions and 8 deletions.
@@ -1,17 +1,10 @@
from mantid.simpleapi import *
from mantid.kernel import *
from mantid.api import *
from manitd import *

import os
import numpy as np

from IndirectCommon import ExtractFloat, ExtractInt
from IndirectNeutron import ChangeAngles, InstrParas, RunParas
from IndirectImport import import_mantidplot

MTD_PLOT = import_mantidplot()


def _split_line(a):
elements = a.split() # split line on character
Expand Down Expand Up @@ -114,6 +107,12 @@ def validateInputs(self):


def PyExec(self):
from IndirectCommon import ExtractFloat, ExtractInt
from IndirectNeutron import ChangeAngles, InstrParas, RunParas
from IndirectImport import import_mantidplot

self._mtd_plot = import_mantidplot()

# Do setup
self._setup()

Expand Down Expand Up @@ -166,7 +165,7 @@ def PyExec(self):

# Plot contour plot
if self._plot == 'Contour' or self._plot == 'Both':
MTD_PLOT.plot2D(self._out_ws)
self._mtd_plot.plot2D(self._out_ws)


def _setup(self):
Expand Down

0 comments on commit 623bcb8

Please sign in to comment.