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
67a08ff4
Commit
67a08ff4
authored
12 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
fix BZDNG-449
parent
a2d9ddfc
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
modules/io/pymod/__init__.py
+3
-5
3 additions, 5 deletions
modules/io/pymod/__init__.py
modules/io/pymod/remote.py
+4
-1
4 additions, 1 deletion
modules/io/pymod/remote.py
with
7 additions
and
6 deletions
modules/io/pymod/__init__.py
+
3
−
5
View file @
67a08ff4
...
@@ -300,11 +300,9 @@ def LoadMMCIF(filename, restrict_chains="", fault_tolerant=None, calpha_only=Non
...
@@ -300,11 +300,9 @@ def LoadMMCIF(filename, restrict_chains="", fault_tolerant=None, calpha_only=Non
prof
.
fault_tolerant
=
_override
(
prof
.
fault_tolerant
,
fault_tolerant
)
prof
.
fault_tolerant
=
_override
(
prof
.
fault_tolerant
,
fault_tolerant
)
if
remote
:
if
remote
:
output_dir
=
tempfile
.
gettempdir
()
from
ost.io.remote
import
RemoteGet
if
__GetModelFromPDB
(
filename
,
output_dir
):
tmp_file
=
RemoteGet
(
filename
,
from_repo
=
'
cif
'
)
filename
=
os
.
path
.
join
(
output_dir
,
'
pdb%s.ent.gz
'
%
filename
)
filename
=
tmp_file
.
name
else
:
raise
IOError
(
'
Can not load PDB %s from www.pdb.org
'
%
filename
)
conop_inst
=
conop
.
Conopology
.
Instance
()
conop_inst
=
conop
.
Conopology
.
Instance
()
builder
=
conop_inst
.
GetBuilder
(
"
DEFAULT
"
)
builder
=
conop_inst
.
GetBuilder
(
"
DEFAULT
"
)
...
...
This diff is collapsed.
Click to expand it.
modules/io/pymod/remote.py
+
4
−
1
View file @
67a08ff4
...
@@ -50,7 +50,10 @@ class RemoteRepository:
...
@@ -50,7 +50,10 @@ class RemoteRepository:
try
:
try
:
connection
=
urllib2
.
urlopen
(
remote_url
)
connection
=
urllib2
.
urlopen
(
remote_url
)
status
=
connection
.
getcode
()
if
hasattr
(
connection
,
'
code
'
):
status
=
connection
.
code
else
:
status
=
connection
.
getcode
()
except
urllib2
.
HTTPError
,
e
:
except
urllib2
.
HTTPError
,
e
:
status
=
e
.
code
status
=
e
.
code
msg
=
'
Could not load %s from %s (status code %d)
'
msg
=
'
Could not load %s from %s (status code %d)
'
...
...
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