Skip to content

Commit

Permalink
Improve comments for temp cal script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoppert committed Feb 1, 2017
1 parent c940c0d commit 9596ca7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Tools/process_sensor_caldata.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import os
#import json

import pandas
from numpy.polynomial import Polynomial
import numpy as np
import pyulog
from jinja2 import Environment, FileSystemLoader


# pylint: disable=invalid-name


Expand Down Expand Up @@ -133,9 +133,8 @@ def temperature_calibration(ulog_filename, do_plot):
else:
continue

# resample at 10 second interval using mean of sample
# won't significantly impact coefficients,
# but will save time and make plots smaller more readable
# get data and fill in empty (NaN) values with forward fill, followed by
# backward fill
data = r[topic][multi_id].ffill().bfill()

x = data.temperature
Expand Down Expand Up @@ -174,7 +173,6 @@ def temperature_calibration(ulog_filename, do_plot):

pdf.close()

# import json
# print(json.dumps(coeffs, indent=2, sort_keys=True))

params = {}
Expand Down

0 comments on commit 9596ca7

Please sign in to comment.