We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d328b6 commit 4ea352aCopy full SHA for 4ea352a
OpenSim/Common/DataTable.h
@@ -646,16 +646,14 @@ class DataTable_ : public AbstractDataTable {
646
void appendRow(const ETX& indRow, const RowVectorView& depRow) {
647
validateRow(_indData.size(), indRow, depRow);
648
649
- try {
+ if (_dependentsMetaData.hasKey("labels")) {
650
auto& labels =
651
_dependentsMetaData.getValueArrayForKey("labels");
652
OPENSIM_THROW_IF(static_cast<unsigned>(depRow.ncol()) !=
653
labels.size(),
654
IncorrectNumColumns,
655
656
static_cast<size_t>(depRow.ncol()));
657
- } catch(KeyNotFound&) {
658
- // No "labels". So no operation.
659
}
660
661
_indData.push_back(indRow);
0 commit comments