Giter VIP home page Giter VIP logo

evi-pro-lite's Introduction

EVI-Pro Lite API Load Profile Generation

Software

  • This script was written using python version 3.7.4. Python can be installed through downloading either:
    • The Anaconda Navigator which comes with the necessary packages preinstalled (recommended)
    • Downloading Python 3 directly
      • This will require the installation of the packages used in this script. Each of those packages can be downloaded through terminal using the pip install <package name> command
      • Packages include: pandas, numpy, matplotlib, requests, json, urllib3, requests, datetime, os

To Run

  • Run this script by opening terminal and navigating to the directory the script is downloaded to

  • Enter 'python' to start python shell and 'import EVIProLite_LoadPlotting'

  • EVIProLite_LoadPlotting.run("<file path to scenario csv with parameters as described above>","<file path to optional temperature csv>","<Your API Key>")

    You can run the script using the provided csvs as a test with: EVIProLite_LoadPlotting.run("./InputData/Scenarios_test.csv","./InputData/ShortTemps_test.csv")

Plotting

  • The script will produce plots automatically as part of the run function but csvPlotting can alternatively be used to import data and plot

  • Defaults to plotting the first week of data

    • Alternatively, the user can use the csvPlotting function to import and plot data from a start date and for a given number of days
      • This function allows the user to specify the number of days and the start date (in yyyy-mm-dd format) for plotting the grid load.
      • Run with EVIProLite_LoadPlotting.csvPlotting(<file path to load profile csv>, <start date>, <number of days>, <optional filename>)
  • The plots will be saved to the OutputData folder

  • Input csv must have values in order as follows:

    • fleet_size, mean_dvmt, temp_c, pev_type, pev_dist, class_dist, home_access_dist, home_power_dist, work_power_dist, pref_dist, res_charging, work_charging
    • View ./InputData/Scenarios_test.csv for proper formatting of this file
  • Each row then represents a single run. All runs from the input csv are output in a dataframe with data for both weekend and weekday

  • The temperature csv needs two columns: "date" and "temperature"

    • Each row in the temperature csv is one day and function aggregates across all included dates.
    • View ./InputData/ShortTemps_test.csv for proper formatting of this file
    • Graph is cumulative so doesn't matter how many days are included in the input
  • Assume temp CSV is in celsius

evi-pro-lite's People

Contributors

dweigl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.