| 51 | } |
| 52 | |
| 53 | PythonPluginVariable PythonPluginTrendVariable_Impl::pythonPluginVariable() const { |
| 54 | boost::optional<PythonPluginVariable> value = optionalPythonPluginVariable(); |
| 55 | if (!value) { |
| 56 | LOG_AND_THROW(briefDescription() << " does not have a PythonPluginVariable attached."); |
| 57 | } |
| 58 | return value.get(); |
| 59 | } |
| 60 | |
| 61 | int PythonPluginTrendVariable_Impl::numberofTimestepstobeLogged() const { |
| 62 | boost::optional<int> value = getInt(OS_PythonPlugin_TrendVariableFields::NumberofTimestepstobeLogged, true); |