Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
6bcb5eac
Commit
6bcb5eac
authored
5 years ago
by
Alexander Rose
Browse files
Options
Downloads
Patches
Plain Diff
adjust 'auto' quality
parent
f2f1e355
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
src/mol-repr/util.ts
+6
-5
6 additions, 5 deletions
src/mol-repr/util.ts
with
6 additions
and
5 deletions
src/mol-repr/util.ts
+
6
−
5
View file @
6bcb5eac
...
...
@@ -60,15 +60,16 @@ export function getQualityProps(props: Partial<QualityProps>, data?: any) {
let
resolution
=
defaults
(
props
.
resolution
,
2
)
if
(
quality
===
'
auto
'
&&
data
instanceof
Structure
)
{
let
score
=
data
.
elementCount
if
(
data
.
isCoarse
)
score
*=
10
const
structure
=
data
.
root
let
score
=
structure
.
elementCount
if
(
structure
.
isCoarse
)
score
*=
10
if
(
score
>
500
_000
)
{
quality
=
'
lowest
'
}
else
if
(
score
>
3
00
_000
)
{
}
else
if
(
score
>
2
00
_000
)
{
quality
=
'
lower
'
}
else
if
(
score
>
10
0
_000
)
{
}
else
if
(
score
>
6
0
_000
)
{
quality
=
'
low
'
}
else
if
(
score
>
3
0
_000
)
{
}
else
if
(
score
>
2
0
_000
)
{
quality
=
'
medium
'
}
else
if
(
score
>
2
_000
)
{
quality
=
'
high
'
...
...
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