Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mrdna
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
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
tbgl
tools
mrdna
Commits
aedbdd90
"README.rst" did not exist on "9c1786d070afa595862469ccab5ff3a709d72ab7"
Commit
aedbdd90
authored
6 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Added missing angle potential file
parent
ab3f6df3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mrdna/config.py
+2
-2
2 additions, 2 deletions
mrdna/config.py
mrdna/model/spring_from_lp.py
+16
-0
16 additions, 0 deletions
mrdna/model/spring_from_lp.py
with
18 additions
and
2 deletions
mrdna/config.py
+
2
−
2
View file @
aedbdd90
...
...
@@ -47,11 +47,11 @@ Do you agree to allow the mrdna package can send the information
described above to the Aksimentiev group webserver? [y/N]
"""
)
response
=
input
()
if
response
in
'
y Y yes Yes YES
'
.
split
():
print
(
"
Permission granted
"
)
#
print("Permission granted")
config
[
'
reporting_allowed
'
]
=
True
break
elif
response
in
'
n N no No NO
'
.
split
()
+
[
""
]:
print
(
"
Permission denied
"
)
#
print("Permission denied")
config
[
'
reporting_allowed
'
]
=
False
break
with
open
(
_USER_CONF
,
'
w
'
)
as
ch
:
...
...
This diff is collapsed.
Click to expand it.
mrdna/model/spring_from_lp.py
0 → 100644
+
16
−
0
View file @
aedbdd90
import
numpy
as
np
_kT
=
0.58622522
# kcal/mol
_k
=
np
.
logspace
(
-
8
,
3
,
1000
)
def
_integrate
(
fn
):
t
=
np
.
linspace
(
0
,
np
.
pi
,
10000
)
return
np
.
trapz
(
fn
(
t
),
t
[
np
.
newaxis
,:],
axis
=
-
1
)
_integral
=
_integrate
(
lambda
t
:
np
.
cos
(
t
[
np
.
newaxis
,:])
*
np
.
sin
(
t
[
np
.
newaxis
,:])
*
np
.
exp
((
-
0.5
*
_k
[:,
np
.
newaxis
]
*
(
t
[
np
.
newaxis
,:])
**
2
)
/
_kT
)
)
/
\
_integrate
(
lambda
t
:
np
.
sin
(
t
[
np
.
newaxis
,:])
*
np
.
exp
((
-
0.5
*
_k
[:,
np
.
newaxis
]
*
(
t
[
np
.
newaxis
,:])
**
2
)
/
_kT
)
)
assert
(
(
np
.
diff
(
_integral
)
<=
0
).
sum
()
==
0
)
def
k_angle
(
sep
,
Lp
):
val
=
np
.
exp
(
-
sep
/
Lp
)
return
np
.
interp
(
val
,
_integral
,
_k
)
*
0.00030461742
# convert to degree^2
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