parameters: ()
docstring: demo
docstring_summary: demo
docstring_tokens: demo
function: def main():
      """
      demo
      """
      if len(sys.argv) == 2:
          # get the latest file
          file_path = sys.argv[1]
      else:
          file_path = tkinter.filedialog.askopenfilename(
              initialdir="/home/caros/.ros",
              filetypes=(("csv files", ".csv"), ("all files", "*.*")))
      plotter = Plotter(file_path)
      plotter.process_data(file_path)
      plotter.save_data()
      print('save result to:', file_path + ".result")
function_tokens: def main ( ) : if len ( sys . argv ) == 2 : # get the latest file file_path = sys . argv [ 1 ] else : file_path = tkinter . filedialog . askopenfilename ( initialdir = "/home/caros/.ros" , filetypes = ( ( "csv files" , ".csv" ) , ( "all files" , "*.*" ) ) ) plotter = Plotter ( file_path ) plotter . process_data ( file_path ) plotter . save_data ( ) print ( 'save result to:' , file_path + ".result" )