urbanopt-cli 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4748528e1bec16cb2fd5ceee5a33e8eb971e0413c98afc8749c25713e48b8115
4
- data.tar.gz: 38ddd809cc529d9424d8fd53bb8bf577cee995c1cc2d8fe9cfa6e01893329c31
3
+ metadata.gz: dee18d6e4ea1f143b0616e07f3874368ec3a22c819dd218dd1e9f89301ff059e
4
+ data.tar.gz: e75496190b9ef64631426f7d583cc8e9d4232f10afa74b03f3dd17108b96409a
5
5
  SHA512:
6
- metadata.gz: 8b2411b0c69344f0280cddd43027ed866288c0cc9f15a2535677b7e2ef94aded45067927b3a1fcc5eee094aa180c2160fd36139b5a6ceb4d6ece0d31a3c7c590
7
- data.tar.gz: 779a0410116101dede994285d6b15c6639f98fd52f9e3157d6251eca847ebf63976c6d585ab05fe0c3bc467a09d14edbdde16ac81d182f3e0561882b514bf909
6
+ metadata.gz: d380c0760876f4a91e6a04d90cbf4d8e8c7e8fb38310eee6f539d97450410e26ccafd7d1c7fdbf723ff3a82365c8ae58967a75324a49d3545b53c9f31c7cb349
7
+ data.tar.gz: 7646d91864f845fb4ed641ac347e90fe1bede2a7247727abaa70bdddd553163ed1ffaa0a9b4a14ef3139ac7ed95dba478c20937ad01b73a6db3abdf33345e063
@@ -24,8 +24,8 @@ jobs:
24
24
  strategy:
25
25
  matrix:
26
26
  # os: container operations in GHA only work on Ubuntu
27
- simulation-type: [basic, GEB, residential, electric]
28
- # python-version: No need to test more than 1 python-version
27
+ # https://docs.github.com/en/actions/using-containerized-services/about-service-containers
28
+ simulation-type: [basic, GHE, GEB, residential, electric]
29
29
  runs-on: ubuntu-latest
30
30
  container:
31
31
  image: docker://nrel/openstudio:3.7.0
@@ -34,19 +34,13 @@ jobs:
34
34
  - name: Change Owner of Container Working Directory
35
35
  # working dir permissions workaround from https://github.com/actions/runner-images/issues/6775#issuecomment-1377299658
36
36
  run: chown root:root .
37
- - name: Set up Python
38
- if: ${{ matrix.simulation-type == 'electric' }}
39
- uses: actions/setup-python@v5
40
- with:
41
- # Disco needs python ~=3.10
42
- python-version: '3.10'
43
37
  - name: Install Ruby dependencies
44
38
  run: |
45
39
  ruby --version
46
40
  bundle update
47
41
  bundle exec certified-update
48
42
  - name: Install python dependencies
49
- if: ${{ matrix.simulation-type == 'electric' || matrix.simulation-type == 'basic' }}
43
+ if: ${{ matrix.simulation-type == 'electric' || matrix.simulation-type == 'GHE' }}
50
44
  run: bundle exec rspec -e 'Install python dependencies'
51
45
  - name: Test project setup
52
46
  # We only need to run these tests once, not every matrix iteration.
@@ -68,4 +62,4 @@ jobs:
68
62
  name: rspec_results
69
63
  path: |
70
64
  spec/test_directory**/
71
- retention-days: 7 # save for 1 week before deleting
65
+ retention-days: 7 # save for 1 week then delete
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.11.1
4
+ Date Range: 01/26/2024 - 02/08/2024
5
+
6
+ * Call GMT-cli correctly by @vtnate in https://github.com/urbanopt/urbanopt-cli/pull/449
7
+
8
+
9
+ **Full Changelog**: https://github.com/urbanopt/urbanopt-cli/compare/v0.11.0...v0.11.1
10
+
3
11
  ## Version 0.11.0
4
12
  Date Range: 07/20/23 - 01/26/24
5
13
 
data/CMakeLists.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  cmake_minimum_required(VERSION 3.10.2)
2
2
  cmake_policy(SET CMP0048 NEW)
3
3
 
4
- project(URBANoptCLI VERSION 0.10.0)
4
+ project(URBANoptCLI VERSION 0.11.0)
5
5
 
6
6
  include(FindOpenStudioSDK.cmake)
7
7
 
@@ -89,16 +89,16 @@ option(BUILD_PACKAGE "Build package" OFF)
89
89
  # need to update the MD5sum for each platform and url below
90
90
  if(UNIX)
91
91
  if(APPLE)
92
- set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20230731-darwin.tar.gz")
93
- set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "6dcaeb17c6567d5e5242c470b0ff2eb0")
92
+ set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20240202-darwin.tar.gz")
93
+ set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "27dad609451f5b0e7835efbcb8e362b7")
94
94
  else()
95
- set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20230731-linux.tar.gz")
96
- set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "ff67d59a162288cb7e5d4632e970e53d")
95
+ set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20240202-linux.tar.gz")
96
+ set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "2182c1ca7bcd85505db4700f4937d181")
97
97
  endif()
98
98
  elseif(WIN32)
99
99
  if(CMAKE_CL_64)
100
- set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20230801-windows.tar.gz")
101
- set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "2293f9f07643d110a84afaa0c1049c03")
100
+ set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20240202-windows.tar.gz")
101
+ set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "7a7cc4f928646363bd57b41e10caebca")
102
102
  endif()
103
103
  endif()
104
104
 
@@ -1,6 +1,6 @@
1
1
  set(OPENSTUDIO_VERSION_MAJOR 3)
2
- set(OPENSTUDIO_VERSION_MINOR 6)
3
- set(OPENSTUDIO_VERSION_PATCH 1)
2
+ set(OPENSTUDIO_VERSION_MINOR 7)
3
+ set(OPENSTUDIO_VERSION_PATCH 0)
4
4
  set(OPENSTUDIO_VERSION "${OPENSTUDIO_VERSION_MAJOR}.${OPENSTUDIO_VERSION_MINOR}.${OPENSTUDIO_VERSION_PATCH}")
5
5
 
6
6
  find_package(openstudio "${OPENSTUDIO_VERSION}" CONFIG)
@@ -13,26 +13,26 @@ else()
13
13
  # find_package(openstudio "${OPENSTUDIO_VERSION}" CONFIG REQUIRED)
14
14
 
15
15
 
16
- set(OPENSTUDIO_BASELINK "https://openstudio-builds.s3.amazonaws.com/${OPENSTUDIO_VERSION}"
16
+ set(OPENSTUDIO_BASELINK "https://github.com/NREL/OpenStudio/releases/download/v${OPENSTUDIO_VERSION}"
17
17
  CACHE STRING "Base link to where the openstudio archives are hosted" FORCE)
18
18
 
19
- set(OPENSTUDIO_VERSION_SHA "+bb9481519e")
19
+ set(OPENSTUDIO_VERSION_SHA "+d5269793f1")
20
20
 
21
21
  if(APPLE)
22
- set(OPENSTUDIO_EXPECTED_HASH ba881908f683ec695c209399f261b299)
22
+ set(OPENSTUDIO_EXPECTED_HASH a4585ef0a3523168f8975ecd1cff1d12)
23
23
  set(OPENSTUDIO_PLATFORM "Darwin-x86_64")
24
24
  set(OPENSTUDIO_EXT "tar.gz")
25
25
  elseif(UNIX)
26
26
  if(LSB_RELEASE_VERSION_SHORT MATCHES "20.04")
27
- set(OPENSTUDIO_EXPECTED_HASH 5e67958249d99f96149b4d5576c3d0ef)
27
+ set(OPENSTUDIO_EXPECTED_HASH 5c006e5e66e5e859206a63626ea2966f)
28
28
  set(OPENSTUDIO_PLATFORM "Ubuntu-20.04-x86_64")
29
29
  else() # Assumes 20.04
30
- set(OPENSTUDIO_EXPECTED_HASH 5e67958249d99f96149b4d5576c3d0ef)
30
+ set(OPENSTUDIO_EXPECTED_HASH 5c006e5e66e5e859206a63626ea2966f)
31
31
  set(OPENSTUDIO_PLATFORM "Ubuntu-20.04-x86_64")
32
32
  endif()
33
33
  set(OPENSTUDIO_EXT "tar.gz")
34
34
  elseif(WIN32)
35
- set(OPENSTUDIO_EXPECTED_HASH 802f8cffeac24f011e636baf1e6ffd40)
35
+ set(OPENSTUDIO_EXPECTED_HASH f192860357fdbffb5705942a991b072b)
36
36
  set(OPENSTUDIO_PLATFORM "Windows")
37
37
  set(OPENSTUDIO_EXT "tar.gz")
38
38
  endif()
@@ -5,6 +5,6 @@
5
5
 
6
6
  module URBANopt
7
7
  module CLI
8
- VERSION = '0.11.0'.freeze
8
+ VERSION = '0.11.1'.freeze
9
9
  end
10
10
  end
data/lib/uo_cli.rb CHANGED
@@ -376,6 +376,9 @@ module URBANopt
376
376
  "Valid choices: 'time_series'", type: String, default: 'time_series'
377
377
 
378
378
  opt :ghe, "\nUse this argument to add Ground Heat Exchanger properties to the System Parameter File.\n", short: :g
379
+
380
+ opt :overwrite, "\n Delete and rebuild existing sys-param file\n", short: :o
381
+ 'Example: uo des_params --sys-param-file path/to/sys_params.json --feature path/to/example_project.json --overwrite'
379
382
  end
380
383
  end
381
384
 
@@ -390,11 +393,10 @@ module URBANopt
390
393
  'Example: uo des_create --feature path/to/example_project.json', type: String, required: true, short: :f
391
394
 
392
395
  opt :des_name, "\nPath to Modelica project dir to be created\n" \
393
- 'Example: uo des_create --des-name path/to/example_modelica_project', type: String, required: true
394
-
395
- opt :model_type, "\nSelection for which kind of DES simulation to perform\n" \
396
- "Valid choices: 'time_series'", type: String, default: 'time_series'
396
+ 'Example: uo des_create --des-name path/to/example_modelica_project', type: String, required: true, short: :n
397
397
 
398
+ opt :overwrite, "\nDelete and rebuild existing model directory\n", short: :o
399
+ 'Example: uo des_create --des-name path/to/example_modelica_project --overwrite'
398
400
  end
399
401
  end
400
402
 
@@ -1758,6 +1760,10 @@ module URBANopt
1758
1760
  end
1759
1761
  des_cli_addition += " --ghe"
1760
1762
  end
1763
+ if @opthash.subopts[:overwrite]
1764
+ puts "\nDeleting and rebuilding existing sys-param file"
1765
+ des_cli_addition += " --overwrite"
1766
+ end
1761
1767
  else
1762
1768
  abort("\nCommand must include new system parameter file name, ScenarioFile, & FeatureFile. Please try again")
1763
1769
  end
@@ -1786,8 +1792,9 @@ module URBANopt
1786
1792
  if @opthash.subopts[:des_name]
1787
1793
  des_cli_addition += " #{File.expand_path(@opthash.subopts[:des_name])}"
1788
1794
  end
1789
- if @opthash.subopts[:model_type]
1790
- des_cli_addition += " #{@opthash.subopts[:model_type]}"
1795
+ if @opthash.subopts[:overwrite]
1796
+ puts "\nDeleting and rebuilding existing Modelica dir"
1797
+ des_cli_addition += " --overwrite"
1791
1798
  end
1792
1799
  else
1793
1800
  abort("\nCommand must include system parameter file name, FeatureFile, and model name. Please try again")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanopt-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - NREL URBANopt team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optimist