Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
dssp
Commits
2830267a
Unverified
Commit
2830267a
authored
Sep 26, 2024
by
Maarten L. Hekkelman
Committed by
GitHub
Sep 26, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #88 from Augustin-Zidek/patch-1
Don't try to validate in annotateDSSP when the validator is not set
parents
778d0ad5
3d835b8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
libdssp/src/dssp-io.cpp
+8
-6
No files found.
libdssp/src/dssp-io.cpp
View file @
2830267a
...
@@ -747,12 +747,14 @@ void annotateDSSP(cif::datablock &db, const dssp &dssp, bool writeOther, bool wr
...
@@ -747,12 +747,14 @@ void annotateDSSP(cif::datablock &db, const dssp &dssp, bool writeOther, bool wr
{
{
using
namespace
std
::
literals
;
using
namespace
std
::
literals
;
auto
&
validator
=
const_cast
<
cif
::
validator
&>
(
*
db
.
get_validator
());
if
(
db
.
get_validator
()
!=
nullptr
)
{
if
(
validator
.
get_validator_for_category
(
"dssp_struct_summary"
)
==
nullptr
)
auto
&
validator
=
const_cast
<
cif
::
validator
&>
(
*
db
.
get_validator
());
{
if
(
validator
.
get_validator_for_category
(
"dssp_struct_summary"
)
==
nullptr
)
auto
dssp_extension
=
cif
::
load_resource
(
"dssp-extension.dic"
);
{
if
(
dssp_extension
)
auto
dssp_extension
=
cif
::
load_resource
(
"dssp-extension.dic"
);
cif
::
extend_dictionary
(
validator
,
*
dssp_extension
);
if
(
dssp_extension
)
cif
::
extend_dictionary
(
validator
,
*
dssp_extension
);
}
}
}
if
(
dssp
.
empty
())
if
(
dssp
.
empty
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment