Skip to content

Commit

Permalink
use v3 in ghp test api url instead of stable
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Jan 24, 2025
1 parent 3be3ace commit b3314d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/tests/urbanopt_reopt_ghp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
building_4_data = JSON.parse(File.read(@building_4_path), symbolize_names: true)

expect(building_4_data[:Site][:latitude]).to_not be_nil
expect(building_4_data[:ElectricLoad][:year]).to_not be_nil
expect(building_4_data[:ElectricLoad][:loads_kw]).to_not be_empty
expect(building_4_data[:ElectricLoad][:loads_kw].size).to eq(8760)
expect(building_4_data[:ElectricTariff][:urdb_label]).to_not be_nil
Expand All @@ -83,7 +84,7 @@
File.open(reopt_input_file_path, 'r') do |f|
reopt_input_data = JSON.parse(f.read)
end
post_url = "https://developer.nrel.gov/api/reopt/stable/job/?api_key=#{DEVELOPER_NREL_KEY}"
post_url = "https://developer.nrel.gov/api/reopt/v3/job/?api_key=#{DEVELOPER_NREL_KEY}"

# Parse the URL and prepare the HTTP request
uri = URI.parse(post_url)
Expand Down

0 comments on commit b3314d4

Please sign in to comment.