Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
39ab987e
Commit
39ab987e
authored
5 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
SCHWED-4108: fix some Real vs double complaints.
parent
7dbd1869
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/io/tests/test_io_sequence_profile.cc
+31
-21
31 additions, 21 deletions
modules/io/tests/test_io_sequence_profile.cc
with
31 additions
and
21 deletions
modules/io/tests/test_io_sequence_profile.cc
+
31
−
21
View file @
39ab987e
...
...
@@ -85,16 +85,26 @@ BOOST_AUTO_TEST_CASE(hhm_loading)
String
olc
=
"ACDEFGHIKLMNPQRSTVWY"
;
Real
correct_aa_freqs
[]
=
{
pow
(
2.0
,
-
0.001
*
3706
),
pow
(
2.0
,
-
0.001
*
5728
),
pow
(
2.0
,
-
0.001
*
4211
),
pow
(
2.0
,
-
0.001
*
4064
),
pow
(
2.0
,
-
0.001
*
4839
),
pow
(
2.0
,
-
0.001
*
3729
),
pow
(
2.0
,
-
0.001
*
4763
),
pow
(
2.0
,
-
0.001
*
4308
),
pow
(
2.0
,
-
0.001
*
4069
),
pow
(
2.0
,
-
0.001
*
3323
),
pow
(
2.0
,
-
0.001
*
5509
),
pow
(
2.0
,
-
0.001
*
4640
),
pow
(
2.0
,
-
0.001
*
4464
),
pow
(
2.0
,
-
0.001
*
4937
),
pow
(
2.0
,
-
0.001
*
4285
),
pow
(
2.0
,
-
0.001
*
4423
),
pow
(
2.0
,
-
0.001
*
3815
),
pow
(
2.0
,
-
0.001
*
3783
),
pow
(
2.0
,
-
0.001
*
6325
),
pow
(
2.0
,
-
0.001
*
4665
)};
Real
correct_aa_freqs
[]
=
{
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3706
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
5728
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4211
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4064
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4839
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3729
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4763
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4308
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4069
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3323
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
5509
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4640
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4464
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4937
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4285
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4423
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3815
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3783
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
6325
)),
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4665
))};
for
(
int
i
=
0
;
i
<
20
;
++
i
)
{
BOOST_CHECK_CLOSE
(
null_model
.
GetFreq
(
olc
[
i
]),
correct_aa_freqs
[
i
],
...
...
@@ -105,17 +115,17 @@ BOOST_AUTO_TEST_CASE(hhm_loading)
ProfileColumn
col
=
(
*
prof
)[
2
];
memset
(
correct_aa_freqs
,
0
,
20
*
sizeof
(
Real
));
correct_aa_freqs
[
0
]
=
pow
(
2.0
,
-
0.001
*
3676
);
correct_aa_freqs
[
1
]
=
pow
(
2.0
,
-
0.001
*
2597
);
correct_aa_freqs
[
5
]
=
pow
(
2.0
,
-
0.001
*
5359
);
correct_aa_freqs
[
6
]
=
pow
(
2.0
,
-
0.001
*
3275
);
correct_aa_freqs
[
11
]
=
pow
(
2.0
,
-
0.001
*
3292
);
correct_aa_freqs
[
12
]
=
pow
(
2.0
,
-
0.001
*
5077
);
correct_aa_freqs
[
13
]
=
pow
(
2.0
,
-
0.001
*
3826
);
correct_aa_freqs
[
15
]
=
pow
(
2.0
,
-
0.001
*
2409
);
correct_aa_freqs
[
16
]
=
pow
(
2.0
,
-
0.001
*
3733
);
correct_aa_freqs
[
17
]
=
pow
(
2.0
,
-
0.001
*
4503
);
correct_aa_freqs
[
19
]
=
pow
(
2.0
,
-
0.001
*
3070
);
correct_aa_freqs
[
0
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3676
)
)
;
correct_aa_freqs
[
1
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
2597
)
)
;
correct_aa_freqs
[
5
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
5359
)
)
;
correct_aa_freqs
[
6
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3275
)
)
;
correct_aa_freqs
[
11
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3292
)
)
;
correct_aa_freqs
[
12
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
5077
)
)
;
correct_aa_freqs
[
13
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3826
)
)
;
correct_aa_freqs
[
15
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
2409
)
)
;
correct_aa_freqs
[
16
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3733
)
)
;
correct_aa_freqs
[
17
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
4503
)
)
;
correct_aa_freqs
[
19
]
=
static_cast
<
Real
>
(
pow
(
2.0
,
-
0.001
*
3070
)
)
;
for
(
int
i
=
0
;
i
<
20
;
++
i
){
BOOST_CHECK_CLOSE
(
col
.
GetFreq
(
olc
[
i
]),
correct_aa_freqs
[
i
],
Real
(
1e-5
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment