Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Urban opt50 #615

Merged
merged 88 commits into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
eb19b67
resolve gem deps for urbanopt install
brianlball Jul 14, 2020
915ef95
update analysis-gem commit
brianlball Jul 14, 2020
79cf663
convert create_and_run_datapoint_uniquegroups to create_and_run_datap…
brianlball Jul 15, 2020
0f3770f
add create_and_run_datapoint_filename field to models/analysis.rb
brianlball Jul 15, 2020
b6bef1f
demo UrbanOpt running on RServe container
brianlball Jul 15, 2020
3dcecda
example files
brianlball Jul 16, 2020
9da9ea9
remove create_and_run_datapoint_urbanopt.R
brianlball Jul 17, 2020
d59c952
get >uo --help to run on the workers and dump to urbanopt_simulation.log
brianlball Jul 17, 2020
b1c72fb
add urbanopt_simulation.log to run.log
brianlball Jul 17, 2020
96b2a7c
get UO to run on the workers and use an uploaded example.json and sce…
brianlball Jul 17, 2020
7cb6e36
move UrbanOpt Bundle to analysis/lib/urbanopt/ and inside analysis.lo…
brianlball Jul 18, 2020
0b9bc7e
UO runtime log
brianlball Jul 18, 2020
1c3c7fa
add check for urbanopt
brianlball Jul 19, 2020
e799b98
typo
brianlball Jul 20, 2020
9133bbd
better logging
brianlball Jul 20, 2020
cadb282
.inspect wasnt working
brianlball Jul 20, 2020
a85f086
smaller project size for conversion
brianlball Jul 21, 2020
f82cb51
get osw
brianlball Jul 22, 2020
5ee7304
try add urbanopt_Variable
brianlball Jul 22, 2020
c1e4b2c
define urbanopt_variable
brianlball Jul 22, 2020
1e5cf42
is urbanopt variable working??
brianlball Jul 22, 2020
75063cc
check if uuid is not valid then set nil
brianlball Jul 22, 2020
6d40014
test files
brianlball Jul 23, 2020
53f705c
send variable through to mappers/HighEfficiency.rb
brianlball Jul 23, 2020
4198c94
2 urbanopt objective functions
brianlball Jul 24, 2020
eefab23
analysis-gem 1.0.5
brianlball Jul 24, 2020
089ba3b
move UO bundle back to datapoint instead of analysis
brianlball Jul 24, 2020
7fe8dff
rename 2nd variable
brianlball Jul 24, 2020
e07fc8f
change mapper variable replacement to regex
brianlball Jul 24, 2020
3e85e60
try bundle install args
brianlball Jul 24, 2020
dd66e1e
use analysis-gem / workflow-gem urbanopt branch
brianlball Jul 27, 2020
63ad531
cleanup
brianlball Jul 27, 2020
79ec7d4
move all urbanopt mods to analysis level.
brianlball Jul 28, 2020
29f0fea
get lhs_discrete test to work
brianlball Jul 28, 2020
09c52d8
cleanup
brianlball Jul 28, 2020
83581e0
add :mapper, :uo_measure to variable
brianlball Jul 29, 2020
c36b9d8
change regex to include measure name since its unique
brianlball Jul 29, 2020
e3fb5c5
algorithm cleanup
brianlball Jul 29, 2020
003f12f
add uo process for uo outputs
brianlball Jul 31, 2020
bfd788b
add break to api_create_datapoint.rb if sim completes normal, but obj…
brianlball Aug 4, 2020
2ad2275
remove OJ and zip for debug
brianlball Aug 4, 2020
66f2550
add fields for UrbanOpt output variables
brianlball Aug 5, 2020
71c6dd8
add in objective function finding
brianlball Aug 5, 2020
37244fb
change uo output name to uuid.var_name
brianlball Aug 6, 2020
c98a318
move run_urbanopt to function
brianlball Aug 8, 2020
d568929
Merge remote-tracking branch 'origin/develop' into UrbanOpt
brianlball Aug 10, 2020
215fa1a
Merge remote-tracking branch 'origin/develop' into UrbanOpt
brianlball Aug 10, 2020
5c92ebd
add end_use options for UO outputs
brianlball Aug 11, 2020
f0d3fc2
end use options for objective functions
brianlball Aug 11, 2020
2bf73e4
get scenario level reports to work
brianlball Aug 11, 2020
706ebac
get zips to not have multple copies of dir files like you get when yo…
brianlball Aug 12, 2020
4336b17
get default_report.csv and .json to upload to gui
brianlball Aug 12, 2020
d5f8b9c
add -z option to CLI to specify zip file with different name than OSA…
brianlball Aug 31, 2020
75029c9
add start of algorithm tests
brianlball Sep 2, 2020
a255718
full tests
brianlball Sep 2, 2020
67854ab
fix common-measure gem to uo_debug
brianlball Nov 17, 2020
3f8a38c
add measure for spacetype ratios in feature files
brianlball Dec 1, 2020
202b966
change .all to .any for measure-only and postprocess-only calls
brianlball Dec 2, 2020
cbfc9bd
add uo_variable
brianlball Dec 4, 2020
5818272
add measure to change values in reopt/base_assumptions.json
brianlball Dec 10, 2020
3dcc6a4
Merge remote-tracking branch 'origin/UrbanOpt' into UrbanOpt50
brianlball Dec 18, 2020
eaf8ee5
move test files to new location
brianlball Dec 18, 2020
69b86a0
use urbanopt analysis gem branch
brianlball Jan 7, 2021
cd1f90d
update Gemfile for 0.5.0
brianlball Jan 11, 2021
c70e2c9
add single_run test for NSGA
brianlball Jan 11, 2021
7eb7112
Merge remote-tracking branch 'origin/update_local_scripts' into Urban…
brianlball Jan 12, 2021
8e6070f
Update version.rb
brianlball Jan 12, 2021
c2fc270
update urbanopt test to check objectives.json and remove nonunique na…
brianlball Jan 12, 2021
32ce001
Merge branch 'UrbanOpt50' of github.com:NREL/OpenStudio-server into U…
brianlball Jan 12, 2021
13db4aa
appveyor.yml debugging
brianlball Jan 12, 2021
69c7dce
appveyor/setup.cmd debug
brianlball Jan 12, 2021
63bd72c
remove old algo tests from /spec dir (it was moved to /server/spec
brianlball Jan 12, 2021
4897370
roll back appveyor changes
brianlball Jan 12, 2021
37a9d57
analysis-gem 1.1.0.pre.rc1
brianlball Jan 12, 2021
b0cdb84
round instead of truncate for urbanopt compare
brianlball Jan 12, 2021
53a9a3a
add log around analysis-gem calls
brianlball Jan 12, 2021
5ec1eae
bump timeouts
brianlball Jan 13, 2021
9f05a0a
wrong analysis type in test compare
brianlball Jan 13, 2021
eaa278c
Merge branch 'UrbanOpt50' of github.com:NREL/OpenStudio-server into U…
brianlball Jan 13, 2021
d9c0f14
update test values
brianlball Jan 13, 2021
75ce44e
temp remove some duplicate-ish tests bc of travis time limit
brianlball Jan 13, 2021
1e4103a
urbanopt-reporting 0.3.2
brianlball Jan 14, 2021
06f91d2
Update openstudio_algo_spec.rb
brianlball Jan 14, 2021
70acb46
get tests to work
brianlball Jan 14, 2021
1949a9e
add more debugging to urbanopt outputs
brianlball Jan 25, 2021
64092eb
Merge remote-tracking branch 'origin/develop' into UrbanOpt50
brianlball Jan 25, 2021
bbc1643
couple fixes
nllong Feb 1, 2021
327a709
update local docker test instructions to match GH Actions
nllong Feb 1, 2021
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: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ ENV OS_BUNDLER_VERSION=2.1.0
# Set the rails env var
ENV RAILS_ENV $rails_env

# extension gem testing
#ENV FAVOR_LOCAL_GEMS 1

#### OpenStudio Server Code
# First upload the Gemfile* so that it can cache the Gems -- do this first because it is slow
ADD /bin /opt/openstudio/bin
Expand Down Expand Up @@ -156,4 +159,4 @@ RUN chmod +x /usr/local/bin/run-server-tests

# Test adding the git repo to the container for coveralls
# The #TEST# will be removed in the travis test script to be run in the test container
#TEST#COPY .git /opt/openstudio/.git
#TEST#COPY .git /opt/openstudio/.git
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ artifacts:
- path: 'export/*.tar.gz' #relative to root of repo
name: oss.tar.gz

# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

clone_folder: C:\projects\openstudio-server

Expand All @@ -35,6 +35,6 @@ test_script:
- cmd: C:\projects\openstudio-server\ci\appveyor\build_package.cmd #artifact upload occurs before on_finish
on_finish:
- cmd: C:\projects\openstudio-server\ci\appveyor\print_logs.cmd
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
on_failure:
- cmd: C:\projects\openstudio-server\ci\appveyor\print_logs.cmd
8 changes: 7 additions & 1 deletion docker/R/lib/api_create_datapoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,14 @@

# load in the objective functions by accessing the objectives file
# that were uploaded when the datapoint completed
begin
a = RestClient.post "#{options[:host]}/data_points/#{datapoint_id}/download_report.json", data_point: { filename: 'objectives' }
a = JSON.parse(a, symbolize_names: true)
rescue => e
puts "error #{e.message}"
break #at this point, simulation completed normal, but objectives failed, so dont try again. break and be done with it.
end

a = JSON.parse(a, symbolize_names: true)
# JSON will be form of:
# {
# "objective_function_1": 24.125,
Expand Down
4 changes: 2 additions & 2 deletions docker/R/lib/create_and_run_datapoint_uniquegroups.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# rails_analysis_id
# ruby_command
# r_scripts_path
create_and_run_datapoint_uniquegroups <- function(x){
create_and_run_datapoint <- function(x){
options(warn=-1)
if (check_run_flag(r_scripts_path, rails_host, rails_analysis_id, debug_messages)==FALSE){
options(warn=0)
Expand All @@ -53,7 +53,7 @@ create_and_run_datapoint_uniquegroups <- function(x){
# convert the vector to comma separated values
force(x)
w <- paste(x, collapse=",")
y <- paste(r_scripts_path,'/api_create_datapoint.rb -h ',rails_host,' -a ',rails_analysis_id,' -v ',w,' --submit',sep='')
y <- paste(r_scripts_path,'/api_create_datapoint.rb -h ',rails_host,' -a ',rails_analysis_id,' -v ',w,' --submit', sep='')
if(debug_messages == 1){
print(paste('run command: ruby ', y))
}
Expand Down
Loading