Commit f6e69bc0 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Add FFT integral to save file output.

parent 444361f8
Loading
Loading
Loading
Loading
+17 −0
Changes for dstat_interface/interface/save.py: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -183,6 +183,23 @@ def text(exp, data, path, auto=False):
    for i in exp.commands:
        header += i
    
    try:
        if exp.ft_int:
            header += "\n"
            header += "".join(
                (
                    "# FT Integral (",
                    str(exp.parameters['sync_freq']),
                    "±",
                    str(exp.parameters['fft_int']/2),
                    " Hz): ",
                    str(exp.ft_int),
                    " A"
                )
            )
    except AttributeError:
        pass

    file.write("".join([header, '\n']))
    for col in zip(*data):
        for row in col:
+1 −1
Changes for dstat_interface/main.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -870,7 +870,7 @@ class Main(object):
            self.current_exp.data_extra = self.current_exp.ftdata
            self.statusbar.push(
                self.message_context_id, " ".join(
                    ("Integral:",str(self.current_exp.ft_int))
                    ("Integral:", str(self.current_exp.ft_int), " A")
                    )
                )