Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ Classify the change according to the following categories:
##### Removed
### Patches

## v3.22.1
### Patches
- Upgrades solver stack dependencies in Julia environment
- Updates internally-used developer key environment variables to NLR from NREL for Julia environment

## v3.22.0
### Minor Updates
##### Added
Expand Down
4 changes: 2 additions & 2 deletions julia_src/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NREL_DEVELOPER_API_KEY="gAfosXcQ9Ldfw3qXqvKVb7PxMEkYigozmC9R3mXQ"
NREL_DEVELOPER_EMAIL="reopt@nlr.gov"
NLR_DEVELOPER_API_KEY="gAfosXcQ9Ldfw3qXqvKVb7PxMEkYigozmC9R3mXQ"
NLR_DEVELOPER_EMAIL="reopt@nlr.gov"
Comment on lines +1 to +2
64 changes: 25 additions & 39 deletions julia_src/Manifest.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions julia_src/http.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import REopt as reoptjl # For REopt.jl, needed because we still have local REop
using DotEnv
DotEnv.load!()

const test_nrel_developer_api_key = ENV["NREL_DEVELOPER_API_KEY"]
const test_nlr_developer_api_key = ENV["NLR_DEVELOPER_API_KEY"]

ENV["NREL_DEVELOPER_EMAIL"] = "reopt@nlr.gov"
ENV["NLR_DEVELOPER_EMAIL"] = "reopt@nlr.gov"
Comment on lines +8 to +10
include("heuristic_dispatch_sizing.jl")
include("mpc.jl")

Expand Down Expand Up @@ -61,9 +61,9 @@ function reopt(req::HTTP.Request)
d = JSON.parse(String(req.body))
error_response = Dict()
if !isempty(get(d, "api_key", ""))
ENV["NREL_DEVELOPER_API_KEY"] = pop!(d, "api_key")
ENV["NLR_DEVELOPER_API_KEY"] = pop!(d, "api_key")
else
ENV["NREL_DEVELOPER_API_KEY"] = test_nrel_developer_api_key
ENV["NLR_DEVELOPER_API_KEY"] = test_nlr_developer_api_key
delete!(d, "api_key")
Comment on lines 63 to 67
end

Expand Down Expand Up @@ -909,9 +909,9 @@ function mpc(req::HTTP.Request)
results = Dict()
try
if !isempty(get(d, "api_key", ""))
ENV["NREL_DEVELOPER_API_KEY"] = pop!(d, "api_key")
ENV["NLR_DEVELOPER_API_KEY"] = pop!(d, "api_key")
else
ENV["NREL_DEVELOPER_API_KEY"] = test_nrel_developer_api_key
ENV["NLR_DEVELOPER_API_KEY"] = test_nlr_developer_api_key
delete!(d, "api_key")
end

Expand Down