Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrunik committed Sep 27, 2024
1 parent f6903eb commit 4558d54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/greenheart/test_hydrogen/test_electrolyzer_physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pandas as pd
import greenheart.tools.eco.electrolysis as he_elec
import greenheart.tools.plant_sizing_estimation as gh_sizing
from greenheart.simulation.technologies.hydrogen.electrolysis import PEM_tools
from hopp.utilities import load_yaml
import os
import unittest
Expand Down Expand Up @@ -222,9 +223,9 @@ def test_grid_electrolyzer_physics(grid_physics,grid_baseline_power_profile,subt
def test_electrolyzer_tools(subtests):
hydrogen_demand = 8366.311517
cluster_cap_mw = 40
bol_eff = he_elec.get_electrolyzer_BOL_efficiency()
electrolyzer_capacity_BOL_MW = he_elec.size_electrolyzer_for_hydrogen_demand(hydrogen_demand)
electrolyzer_size_mw = he_elec.check_capacity_based_on_clusters(electrolyzer_capacity_BOL_MW,cluster_cap_mw)
bol_eff = PEM_tools.get_electrolyzer_BOL_efficiency()
electrolyzer_capacity_BOL_MW = PEM_tools.size_electrolyzer_for_hydrogen_demand(hydrogen_demand)
electrolyzer_size_mw = PEM_tools.check_capacity_based_on_clusters(electrolyzer_capacity_BOL_MW,cluster_cap_mw)

with subtests.test("electrolyzer BOL efficiency"):
assert bol_eff == 54.61
Expand Down

0 comments on commit 4558d54

Please sign in to comment.