Skip to content
Snippets Groups Projects
Commit 3a8dc3e9 authored by Marco Biasini's avatar Marco Biasini
Browse files

use _entity.pdbx_description not _entity.detail

parent 283198f1
Branches
Tags
No related merge requests found
......@@ -158,7 +158,7 @@ bool MMCifParser::OnBeginLoop(const StarLoopDesc& header)
this->TryStoreIdx(E_ID, "id", header);
// optional
indices_[E_TYPE] = header.GetIndex("type");
indices_[DETAILS] = header.GetIndex("details");
indices_[PDBX_DESCRIPTION] = header.GetIndex("pdbx_description");
cat_available = true;
} else if (header.GetCategory() == "entity_poly") {
category_ = ENTITY_POLY;
......@@ -473,8 +473,8 @@ void MMCifParser::ParseEntity(const std::vector<StringRef>& columns)
}
// description
if (indices_[DETAILS] != -1) {
desc.details = columns[indices_[DETAILS]].str();
if (indices_[PDBX_DESCRIPTION] != -1) {
desc.details = columns[indices_[PDBX_DESCRIPTION]].str();
} else {
desc.details = "";
}
......
......@@ -233,7 +233,7 @@ private:
typedef enum {
E_ID, ///< unique identifier
E_TYPE, ///< polymer, non-polymer or water
DETAILS ///< special aspects of the entity
PDBX_DESCRIPTION ///< special aspects of the entity
} EntityItems;
/// \enum items of the entity_poly category
......
......@@ -9,7 +9,7 @@ data_1BAR
loop_
_entity.id
_entity.type
_entity.details
_entity.pdbx_description
1 polymer
; Very important information.
;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment