urbanopt-cli 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/uo_cli.rb +3 -4
- data/lib/uo_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 656a49250fd1a04c5efe9db71d577832ec8f46cfcdd0c02c1f7ee877677fd796
|
|
4
|
+
data.tar.gz: 95e26852dccf178bf58fe61b5ba7e771acd89f2bd4bc919131f8bff6157dea32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03a36eea762adcd0f455a48879aca93d1a11fe62a450b2350e8c56fe07328bac19ead110730e02f09fc6fba6ee1231d62e740a43b248ddda4433fc57e03b0156
|
|
7
|
+
data.tar.gz: 2bf26b6d71d9dca6e8aae3b12670a7cf94e8c4ef632009a091f8b30ac8196cd9bfd13f3eba7ff9ad45260145b19a03e324980eeb7f504aa9fa4d4eda9a873802
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Version 0.3.1
|
|
4
|
+
|
|
5
|
+
Date Range: 06/05/20 - 06/10/20:
|
|
6
|
+
|
|
7
|
+
- Fixed [#113]( https://github.com/urbanopt/urbanopt-cli/issues/113 ), CLI crashes if reopt folder missing from project directory
|
|
8
|
+
|
|
3
9
|
## Version 0.3.0
|
|
4
10
|
|
|
5
11
|
Date Range: 04/23/20 - 06/05/20
|
data/lib/uo_cli.rb
CHANGED
|
@@ -190,10 +190,6 @@ module URBANopt
|
|
|
190
190
|
mapper_files_dir = File.join(@root_dir, 'mappers')
|
|
191
191
|
reopt_files_dir = File.join(@root_dir, 'reopt/')
|
|
192
192
|
num_header_rows = 1
|
|
193
|
-
# FIXME: This can be cleaned up in Ruby 2.5 with Dir.children(<"foldername">)
|
|
194
|
-
# TODO: Better way of grabbing assumptions file than the first file in the folder
|
|
195
|
-
reopt_files_dir_contents_list = Dir["#{reopt_files_dir}/*"]
|
|
196
|
-
reopt_assumptions_filename = File.basename(reopt_files_dir_contents_list[0])
|
|
197
193
|
|
|
198
194
|
if @feature_id
|
|
199
195
|
feature_run_dir = File.join(run_dir, @feature_id)
|
|
@@ -203,6 +199,9 @@ module URBANopt
|
|
|
203
199
|
|
|
204
200
|
feature_file = URBANopt::GeoJSON::GeoFile.from_file(featurefile)
|
|
205
201
|
if @opthash.subopts[:reopt] == true || @opthash.subopts[:reopt_scenario] == true || @opthash.subopts[:reopt_feature] == true
|
|
202
|
+
# TODO: Better way of grabbing assumptions file than the first file in the folder
|
|
203
|
+
reopt_files_dir_contents_list = Dir.children(reopt_files_dir.to_s)
|
|
204
|
+
reopt_assumptions_filename = File.basename(reopt_files_dir_contents_list[0])
|
|
206
205
|
scenario_output = URBANopt::Scenario::REoptScenarioCSV.new(name, @root_dir, run_dir, feature_file, mapper_files_dir, csv_file, num_header_rows, reopt_files_dir, reopt_assumptions_filename)
|
|
207
206
|
else
|
|
208
207
|
scenario_output = URBANopt::Scenario::ScenarioCSV.new(name, @root_dir, run_dir, feature_file, mapper_files_dir, csv_file, num_header_rows)
|
data/lib/uo_cli/version.rb
CHANGED
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.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Moore
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-06-
|
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: optimist
|