Commit f8310445 authored by Daniel Brown's avatar Daniel Brown
Browse files

Fixing noxaxis in plot command, adding Rc param to bp detector

parent 7820cf03
......@@ -468,7 +468,7 @@ class gouy(Detector1):
class bp(Detector1):
acceptedParameters = ['w', 'w0', 'z', 'zr', 'g', 'r', 'q']
acceptedParameters = ['w', 'w0', 'z', 'zr', 'g', 'r', 'q', 'Rc']
def __init__(self, name, direction, parameter, node, alternate_beam=False):
BaseDetector.__init__(self, name, node)
......
......@@ -320,9 +320,6 @@ class katRun(object):
"""
import matplotlib.pyplot as pyplot
import pykat.plotting as plt
if self.noxaxis == True:
raise pkex.BasePyKatException("This kat object has noxaxis=True, so there is nothing to plot.")
if not show:
pyplot.ioff()
......@@ -331,6 +328,9 @@ class katRun(object):
kat.verbose = False
kat.parseCommands(self.katScript)
if kat.noxaxis == True:
raise pkex.BasePyKatException("This kat object has noxaxis=True, so there is nothing to plot.")
if yaxis is not None:
kat.yaxis = yaxis
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment