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
5b0294b3
Commit
5b0294b3
authored
6 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Removed some unneccesary warnings
parent
88a43288
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
mrdna/segmentmodel.py
+8
-7
8 additions, 7 deletions
mrdna/segmentmodel.py
with
8 additions
and
7 deletions
mrdna/segmentmodel.py
+
8
−
7
View file @
5b0294b3
...
...
@@ -1010,17 +1010,17 @@ class SingleStrandedSegment(Segment):
seg2
=
other
.
container
end1
=
self
.
end3
end2
=
other
#
assert(
other.type_
=
= "end
5"
)
if
(
other
.
type_
is
not
"
end5
"
):
print
(
"
WARNING: code does not prevent connecting 3prime to 3prime, etc
"
)
assert
(
other
.
type_
!
=
"
end
3
"
)
#
if (other.type_ is not "end5"):
#
print("WARNING: code does not prevent connecting 3prime to 3prime, etc")
else
:
seg1
=
other
.
container
seg2
=
self
end1
=
other
end2
=
self
.
start
#
assert(
other.type_
=
= "end
3"
)
if
(
other
.
type_
is
not
"
end3
"
):
print
(
"
WARNING: code does not prevent connecting 3prime to 3prime, etc
"
)
assert
(
other
.
type_
!
=
"
end
5
"
)
#
if (other.type_ is not "end3"):
#
print("WARNING: code does not prevent connecting 3prime to 3prime, etc")
## Remove other connections involving these points
if
end1
.
connection
is
not
None
:
...
...
@@ -1840,7 +1840,8 @@ class SegmentModel(ArbdModel):
for
b1
,
b2
in
intra_beads
:
# assert( not np.isclose( np.linalg.norm(b1.collapsedPosition() - b2.collapsedPosition()), 0 ) )
if
np
.
linalg
.
norm
(
b1
.
collapsedPosition
()
-
b2
.
collapsedPosition
())
<
1
:
print
(
"
WARNING: some beads are very close
"
)
# print("WARNING: some beads are very close")
...
parent
=
self
.
_getParent
(
b1
,
b2
)
...
...
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