Skip to content

Commit

Permalink
improving full post-opt analysis compatibility with Linux WSL2
Browse files Browse the repository at this point in the history
  • Loading branch information
ebalogun01 committed Dec 28, 2023
1 parent 3285491 commit 197b59c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions analysis/load_post_opt_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"""

import os
import sys

import copy
import numpy as np
import pandas as pd
Expand All @@ -19,6 +21,7 @@
import seaborn as sns
import matplotlib.pyplot as plt
import matplotlib
sys.path.append('../')
from charging_sim.utils import MONTHS_LIST


Expand Down
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def load_default_input():
user_input = json.load(f)
return user_input


def change_run_date():
"""
Changes the run date for the simulation.
Expand Down
2 changes: 1 addition & 1 deletion test_cases/battery/feeder_population/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'endtime': "'2018-07-30 23:59:00'",
'python_module': 'event_handlers',
'safety_factor': 0.1,
'dcfc_charging_stall_base_rating': '75_kW_kW',
'dcfc_charging_stall_base_rating': '75_kW',
'l2_charging_stall_base_rating': '11.5_kW',
'num_dcfc_nodes': 4,
'num_l2_nodes': 0,
Expand Down
13 changes: 6 additions & 7 deletions user_input.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"sim_mode": "offline",
"opt_solver": "GUROBI",
"central": false,
"feeder_pop": false,
"only_batt_sys": false,
Expand All @@ -13,9 +14,9 @@
},
"battery": {
"data": null,
"max_c_rate": [1],
"pack_max_voltage": [400, 400, 400, 400, 400],
"pack_energy_cap": [5e4, 10e4, 20e4, 40e4, 80e4],
"max_c_rate": [0.1, 0.2],
"pack_max_voltage": [400, 400],
"pack_energy_cap": [5e4, 10e4],
"pack_max_Ah": [250, 400],
"SOC_min": 0.2,
"SOC_max": 0.9,
Expand All @@ -34,8 +35,7 @@
"num_l2_nodes": 0,
"num_dcfc_stalls_per_station": 5,
"num_l2_stalls_per_station": 0,
"commercial_building_trans": 75,
"num_charging_stations_per_node": 5
"commercial_building_trans": 75
},
"load": {
"data": null
Expand All @@ -44,5 +44,4 @@
"data": null,
"month": 7
}

}
}

0 comments on commit 197b59c

Please sign in to comment.