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

adding in new scale options, removing detector check as causes issues when...

adding in new scale options, removing detector check as causes issues when only using detectors which aren't parsed as pykat objects yet
parent 0a39c61a
......@@ -940,7 +940,7 @@ class kat(object):
elif (first == "scale"):
v = line.split()
accepted = ["psd","psd_hf","asd","asd_hf","meter", "ampere", "deg"]
accepted = ["psd","psd_hf","asd","asd_hf","meter", "ampere", "deg", "rad", "1/deg", "1/rad",]
if len(v) == 3:
component_name = v[2]
......@@ -1329,7 +1329,10 @@ class kat(object):
if self.verbose: print ("\nOutput data saved to '{0}'".format(newoutfile))
if len(self.detectors.keys()) > 0:
# can't see why this check is needed, causes problems when only detectors
# not parsed as pykat objects are used
#if len(self.detectors.keys()) > 0:
if hasattr(self, "x2axis") and self.noxaxis == False:
[r.x,r.y,r.z,hdr] = self.readOutFile(outfile)
......
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