mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-28 16:10:24 -05:00
#12199 Python: Add validation error messages for set_summary_values()
The set_summary_values() Python API method now provides clear error messages when validation fails instead of failing silently. Changes: - Add keyword length validation (8-character SMSPEC format limit) - Add value vector size validation with informative messages - Add test cases for both validation scenarios - Update existing test to expect exceptions for invalid inputs Fixes #12199.
This commit is contained in:
1 parent
f070303dc7
commit
a879452563
4 files changed
+106
-15
No files matched your search
@@ -261,7 +261,11 @@ std::expected<caf::PdmObjectHandle*, QString> RimSummaryCase_setSummaryVectorVal
|
||||
}
|
||||
}
|
||||
|
||||
fileSummaryCase->setSummaryData( m_addressString().toStdString(), m_unitString().toStdString(), m_values() );
|
||||
auto result = fileSummaryCase->setSummaryData( m_addressString().toStdString(), m_unitString().toStdString(), m_values() );
|
||||
if ( !result.has_value() )
|
||||
{
|
||||
return std::unexpected( result.error() );
|
||||
}
|
||||
|
||||
if ( rebuildUserInterface )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user