Skip to content

Commit

Permalink
clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrypotts committed Jun 25, 2024
1 parent 59217a8 commit 0de7c8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/generate_structs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,10 @@ function map_prime_mover(prime_mover::String)
end

function dataframe_to_structs(df_dict::Dict)
#Define dictionarty to store structs
test_df = Dict()

#Populate SupplyTechnology structs from database
test_df["SupplyTechnology"] = Dict()
for row in eachrow(df_dict["supply_technologies"])
test_df["SupplyTechnology"][row["technology_id"]] =
Expand All @@ -281,6 +283,7 @@ function dataframe_to_structs(df_dict::Dict)
)
end

#Populate DemandRequirement structs from database
test_df["DemandRequirement"] = Dict()
for row in eachrow(df_dict["demand_requirements"])
test_df["DemandRequirement"][row["entity_attribute_id"]] =
Expand Down

0 comments on commit 0de7c8e

Please sign in to comment.