Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-vasp
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
parser-vasp
Commits
7d850bd7
Commit
7d850bd7
authored
5 years ago
by
Alvin Noe Ladines
Browse files
Options
Downloads
Patches
Plain Diff
Added xz compression
parent
dc59aff1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
vaspparser/__init__.py
+3
-0
3 additions, 0 deletions
vaspparser/__init__.py
with
3 additions
and
0 deletions
vaspparser/__init__.py
+
3
−
0
View file @
7d850bd7
...
@@ -16,6 +16,7 @@ import os
...
@@ -16,6 +16,7 @@ import os
import
logging
import
logging
import
gzip
import
gzip
import
bz2
import
bz2
import
lzma
from
nomadcore.baseclasses
import
ParserInterface
from
nomadcore.baseclasses
import
ParserInterface
import
nomadcore.baseclasses
import
nomadcore.baseclasses
...
@@ -44,6 +45,8 @@ class VASPRunParser:
...
@@ -44,6 +45,8 @@ class VASPRunParser:
open_file
=
gzip
.
open
open_file
=
gzip
.
open
elif
filepath
.
endswith
(
'
.bz2
'
):
elif
filepath
.
endswith
(
'
.bz2
'
):
open_file
=
bz2
.
open
open_file
=
bz2
.
open
elif
filepath
.
endswith
(
'
.xz
'
):
open_file
=
lzma
.
open
parser
.
parse
(
os
.
path
.
abspath
(
filepath
),
open_file
(
filepath
,
'
rt
'
),
backend
)
parser
.
parse
(
os
.
path
.
abspath
(
filepath
),
open_file
(
filepath
,
'
rt
'
),
backend
)
...
...
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