def main(): start_time = time.time() if "download" in sys.argv: # download raw data from server raw_filenames = download_data(dates_to_download) print( "\n\nfinished downloading data, ending. please gzip the data, then run group, process, and clean." ) return if "group" in sys.argv: # Group available data by day group_by_hour() print( "\n\nfinished grouping data, ending. Next, run process, and clean." ) return if "process" in sys.argv: process_proximity() print('completed processing!') if "clean" in sys.argv: # clean up the data clean_up_data() if "analysis" in sys.argv: # create the analysis dataframes analyze_data() if "help" in sys.argv or len(sys.argv) == 1: print( "Please use arguments 'download', 'group', 'process', or 'clean'.") print("Total runtime: %s seconds" % (time.time() - start_time))
def main(): if param['disable_calibration'] == 0: print('\nCCD CALIBRATION:\n') calibration.calibrate_data() print('\nCalibration successfully completed.') if param['disable_analysis'] == 0: print('\n----------------------------------------') print('\nDATA ANALYSIS:\n') analysis.analyze_data() print('Data analysis successfully completed.') if param['disable_plots'] == 0: print('\n----------------------------------------') print('\nPLOTTING:\n') plots.make_plots() print('Plotting successfully completed.')
def main(d): (first_party_info, other_files, sdks, third_party_info, e) = \ load_data(d) eel.analyzingData() (practices_results, _, thirdParty_results) = \ analyze_data(first_party_info, other_files, sdks, third_party_info, e) eel.preparingPoicy() (practices, sdks, thirdPartyAnalysis) = \ configure_data(practices_results, thirdParty_results) return [practices, sdks, thirdPartyAnalysis]
from analysis import analyze_data from analysis import estimate_system initial, p, final, Tr, Tp, percentOS, Ts = analyze_data('data1.csv') m, k, c = estimate_system('data1.csv') print(initial) print(p) print(final) print(Tr) print(Tp) print(percentOS) print(Ts) print(p) print(m) print(k) print(c)