Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pymolfile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nomad-lab
pymolfile
Commits
83679e2b
Commit
83679e2b
authored
May 12, 2020
by
Markus Scheidgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More debug out on import error.
parent
8bda178a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
pymolfile/plugin_list.py
pymolfile/plugin_list.py
+9
-7
No files found.
pymolfile/plugin_list.py
View file @
83679e2b
...
...
@@ -4,6 +4,8 @@ import sys
try
:
from
.molfile
import
libpymolfile
except
ImportError
:
import
traceback
traceback
.
print_exc
()
warnings
.
warn
(
"libpymolfile package not available, pymolfile does not work without its library!"
)
MAX_NUM_PLUGINS
=
200
...
...
@@ -18,8 +20,8 @@ def byte_str_decode(data, dectype=None):
def
plugins
():
""" Information on the available molfile plugins
Example tuple: ('psf', 'psf', 1, 1, 1, 0, 1, 1, 1, 0,
'CHARMM,NAMD,XPLOR PSF', 'mol file reader',
Example tuple: ('psf', 'psf', 1, 1, 1, 0, 1, 1, 1, 0,
'CHARMM,NAMD,XPLOR PSF', 'mol file reader',
'Justin Gullingsrud, John Stone', 1, 9, 17, 1)
The fields in the tuple represent info in ordered as follows:
...
...
@@ -39,18 +41,18 @@ def plugins():
14: major version of the plugin
15: minor version of the plugin
16: ABI version of the plugin
17: 1 if is reentrant (returns is_reentrant)
17: 1 if is reentrant (returns is_reentrant)
Returns: A list of tuples that includes the information and
capabilities of each molfile plugin. The information is
extracted from molfile_plugin_t.
Returns: A list of tuples that includes the information and
capabilities of each molfile plugin. The information is
extracted from molfile_plugin_t.
"""
global
C_MOLFILE_PLUGINS
numlist
=
libpymolfile
.
molfile_init
()
if
sys
.
version_info
>
(
3
,):
basestring
=
str
plugins_list
=
[
[
byte_str_decode
(
item
,
[
byte_str_decode
(
item
,
dectype
=
"unicode_escape"
)
for
item
in
libpymolfile
.
molfile_plugin_info
(
C_MOLFILE_PLUGINS
,
i
)
]
for
i
in
range
(
numlist
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment