idaholab / HERON

Holistic Energy Resource Optimization Network (HERON) is a modeling toolset and plugin for RAVEN to accelerate stochastic technoeconomic assessment of the economic viability of various grid-energy system configurations, especially with application to electrical grids and integrated energy systems (IES).
Apache License 2.0
24 stars 38 forks source link

[DEFECT] Workshop ARMA needs to be retrained. #206

Closed dylanjm closed 1 year ago

dylanjm commented 2 years ago

Defect Description

Due to some recent changes to the ARMA, we need to retrain the ARMA pk file in the workshop.

Traceback (most recent call last):
  File "/Users/mcdodj/Documents/projects/HERON/src/main.py", line 119, in <module>
    sim.read_input(args.xml_input_file) # TODO expand to use arguments?
  File "/Users/mcdodj/Documents/projects/HERON/src/main.py", line 53, in read_input
    objects = input_loader.parse(inp, location, self.messageHandler)
  File "/Users/mcdodj/Documents/projects/HERON/src/../../HERON/src/input_loader.py", line 104, in parse
    case.initialize(components, sources)
  File "/Users/mcdodj/Documents/projects/HERON/src/../../HERON/src/Cases.py", line 668, in initialize
    src.checkValid(self, components, sources)
  File "/Users/mcdodj/Documents/projects/HERON/src/../../HERON/src/Placeholders.py", line 199, in checkValid
    structure = hutils.get_synthhist_structure(self._target_file)
  File "/Users/mcdodj/Documents/projects/HERON/src/../../HERON/src/_utils.py", line 124, in get_synthhist_structure
    meta = rom.writeXML().getRoot()
  File "/Users/mcdodj/Documents/projects/raven/ravenframework/Models/ROM.py", line 599, in writeXML
    engines[0].writeXML(xml)
  File "/Users/mcdodj/Documents/projects/raven/ravenframework/SupervisedLearning/ROMCollection.py", line 1604, in writeXML
    step.writeXML(newNode, targets, skip)
  File "/Users/mcdodj/Documents/projects/raven/ravenframework/SupervisedLearning/ROMCollection.py", line 977, in writeXML
    Segments.writeXML(self, writeTo, targets, skip)
  File "/Users/mcdodj/Documents/projects/raven/ravenframework/SupervisedLearning/ROMCollection.py", line 401, in writeXML
    rom.writeXML(newNode, targets, skip)
  File "/Users/mcdodj/Documents/projects/raven/ravenframework/SupervisedLearning/ARMA.py", line 1394, in writeXML
    armaNode.append(xmlUtils.newNode('std', text=arma.sigma))
  File "/usr/local/Caskroom/miniconda/base/envs/raven_libraries/lib/python3.7/site-packages/statsmodels/base/wrapper.py", line 34, in __getattribute__
    obj = getattr(results, attr)
AttributeError: 'ARMAResults' object has no attribute 'sigma'
 ... Errors were encountered while running HERON.

For Change Control Board: Issue Review

This review should occur before any development is performed as a response to this issue.


For Change Control Board: Issue Closure

This review should occur when the issue is imminently going to be closed.

dylanjm commented 1 year ago

Approved to close via #209