openstudio-analysis 1.0.0.rc19 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitlab-ci.yml +20 -0
  4. data/.rubocop.yml +2 -133
  5. data/.travis.yml +2 -2
  6. data/CHANGELOG.md +6 -32
  7. data/Gemfile +9 -6
  8. data/README.md +15 -7
  9. data/Rakefile +38 -3
  10. data/lib/openstudio-analysis.rb +35 -0
  11. data/lib/openstudio/analysis.rb +35 -0
  12. data/lib/openstudio/analysis/algorithm_attributes.rb +36 -1
  13. data/lib/openstudio/analysis/formulation.rb +41 -6
  14. data/lib/openstudio/analysis/server_api.rb +46 -23
  15. data/lib/openstudio/analysis/support_files.rb +40 -0
  16. data/lib/openstudio/analysis/translator/datapoints.rb +39 -4
  17. data/lib/openstudio/analysis/translator/excel.rb +43 -8
  18. data/lib/openstudio/analysis/translator/workflow.rb +49 -5
  19. data/lib/openstudio/analysis/version.rb +36 -1
  20. data/lib/openstudio/analysis/workflow.rb +37 -2
  21. data/lib/openstudio/analysis/workflow_step.rb +35 -0
  22. data/lib/openstudio/helpers/hash.rb +35 -0
  23. data/lib/openstudio/helpers/string.rb +36 -2
  24. data/lib/openstudio/weather/epw.rb +31 -16
  25. data/openstudio-analysis.gemspec +4 -4
  26. data/spec/files/0_3_7_worker_init_final.xlsx +0 -0
  27. data/spec/files/analysis/examples/medium_office_example.json +2 -1
  28. data/spec/files/worker_init/second_file.sh +4 -0
  29. data/spec/integration/server_api_spec.rb +35 -0
  30. data/spec/openstudio/excel_spec.rb +36 -1
  31. data/spec/openstudio/formulation_spec.rb +46 -3
  32. data/spec/openstudio/hash_spec.rb +37 -2
  33. data/spec/openstudio/osw_spec.rb +37 -2
  34. data/spec/openstudio/server_api_spec.rb +43 -0
  35. data/spec/openstudio/string_spec.rb +34 -0
  36. data/spec/openstudio/support_files_spec.rb +39 -4
  37. data/spec/openstudio/weather_spec.rb +35 -0
  38. data/spec/openstudio/workflow_spec.rb +36 -1
  39. data/spec/openstudio/workflow_step_spec.rb +46 -6
  40. data/spec/spec_helper.rb +4 -2
  41. data/update_license.rb +119 -0
  42. metadata +29 -28
  43. data/rubocop-todo.yml +0 -246
  44. data/spec/files/worker_init/second_file.rb +0 -15
@@ -1,15 +0,0 @@
1
- class SecondFile
2
- def initialize
3
- # do nothing in this example
4
- end
5
-
6
- def run(*args)
7
- puts args
8
-
9
- args
10
- end
11
-
12
- def finalize
13
- # do nothing
14
- end
15
- end