ME 405 Portfolio
Lab4User.py File Reference

User Interface for Lab 04. More...

Functions

def Lab4User.plotData (title, x_label, y_label, x1, y1, y1_label=None, x2=None, y2=None, y2_label=None)
 
def Lab4User.parseCSV (file, start_line, step=0, convert=None)
 Read an open CSV file and return the data in an equivalent matrix. More...
 
def Lab4User.main ()
 

Detailed Description

User Interface for Lab 04.

Reads, parses, and plots data from a .CSV file. For this lab only two temperature graphs are plotted, but the functions created can be easily modified for other applications

Author
Hunter Morse
Jacob Everest
Date
Feb 11, 2021

Function Documentation

◆ parseCSV()

def Lab4User.parseCSV (   file,
  start_line,
  step = 0,
  convert = None 
)

Read an open CSV file and return the data in an equivalent matrix.

Parameters
fileis an open .CSV file with the data to be read
start_lineis the row in the .CSV to begin reading (first line being 0)
stepindicates the numebr of lines to skip when reading the file (skip step-1 lines)
convertindicates the desired type of the end matrix ('f' for float)