Skip to content

Commit

Permalink
Fixed export of hour 'h'.
Browse files Browse the repository at this point in the history
  • Loading branch information
shoops committed Aug 5, 2021
1 parent d3895c3 commit 0217819
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions copasi/sbml/CSBMLExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ void CSBMLExporter::createTimeUnit(const CDataModel& dataModel)

// set it
pSBMLModel->setTimeUnits(uDef->getId());

}

/**
Expand Down Expand Up @@ -2158,7 +2157,6 @@ void CSBMLExporter::checkForUnsupportedObjectReferences(
continue;
}


if (pObject->hasFlag(CDataObject::Reference))
{
const CDataObject* pObjectParent = pObject->getObjectParent();
Expand Down Expand Up @@ -3256,6 +3254,7 @@ void addSymbolComponentToUnitDefinition(UnitDefinition* result, CUnit::SymbolCom
multiplier *= 3600;
symbol = "s";
possibleUnit = "s";
use_d_prefix = false;
}
else if (symbol == "min" || possibleUnit == "min")
{
Expand Down Expand Up @@ -6859,9 +6858,9 @@ bool CSBMLExporter::updateMIRIAMAnnotation(const CDataObject* pCOPASIObject, SBa
cvTerm.setBiologicalQualifierType(BQB_UNKNOWN);
break;

// IS DESCRIBED BY is handled in the references below
//case bqbiol_isDescribedBy:
// break;
// IS DESCRIBED BY is handled in the references below
//case bqbiol_isDescribedBy:
// break;
case CRDFPredicate::bqbiol_isEncodedBy:
case CRDFPredicate::copasi_isEncodedBy:
cvTerm.setQualifierType(BIOLOGICAL_QUALIFIER);
Expand Down Expand Up @@ -6898,7 +6897,7 @@ bool CSBMLExporter::updateMIRIAMAnnotation(const CDataObject* pCOPASIObject, SBa
cvTerm.setBiologicalQualifierType(BQB_IS_VERSION_OF);
break;

// This qualifier is supported in libsbml 4.1
// This qualifier is supported in libsbml 4.1
case CRDFPredicate::bqbiol_occursIn:
case CRDFPredicate::copasi_occursIn:
cvTerm.setQualifierType(BIOLOGICAL_QUALIFIER);
Expand Down Expand Up @@ -6960,9 +6959,9 @@ bool CSBMLExporter::updateMIRIAMAnnotation(const CDataObject* pCOPASIObject, SBa
cvTerm.setModelQualifierType(BQM_HAS_INSTANCE);
break;

// IS DESCRIBED BY is handled in the references below
//case bqmodel_isDescribedBy:
// break;
// IS DESCRIBED BY is handled in the references below
//case bqmodel_isDescribedBy:
// break;
default:
// there are many qualifiers that start e.g. with copasi_ which are
// not handled
Expand Down

0 comments on commit 0217819

Please sign in to comment.