lib/urbanopt/scenario/simulation_dir_osw.rb in urbanopt-scenario-0.3.0 vs lib/urbanopt/scenario/simulation_dir_osw.rb in urbanopt-scenario-0.4.0
- old
+ new
@@ -1,7 +1,7 @@
# *********************************************************************************
-# URBANopt, Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
+# URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
# contributors. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
@@ -58,12 +58,11 @@
end
@mapper_class = mapper_class
end
- attr_reader :mapper_class
-
+ attr_reader :mapper_class, :feature_id
##
# Return the directory that this simulation will run in.
##
def run_dir
raise 'Feature ID not set' if @feature_id.nil?
@@ -193,11 +192,10 @@
return true
end
return false
end
- # rubocop: enable Metrics/AbcSize #:nodoc:
##
# Return simulation status one of {'Not Started', 'Started', 'Complete', 'Failed'}
##
def simulation_status
@@ -211,10 +209,9 @@
end
end
return 'Not Started'
end
- # rubocop: enable Style/GuardClause #:nodoc:
##
# Clear the directory that this simulation runs in
##
def clear