mirror of
https://github.com/triqs/dft_tools
synced 2025-01-08 20:33:16 +01:00
Fixed imports in vasp_converter
Import of 'json' is fixed to conform python distributions without 'simplejson'. Also, the full path is used for 'converter_tools' for the moment while 'vasp_converter' is not part of 'dft_tools'.
This commit is contained in:
parent
2346b43950
commit
fada2af703
@ -23,9 +23,12 @@
|
||||
from types import *
|
||||
import numpy
|
||||
from pytriqs.archive import *
|
||||
from converter_tools import *
|
||||
from pytriqs.applications.dft.converters.converter_tools import *
|
||||
import os.path
|
||||
import simplejson as json
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
#from plotools import ProjectorGroup, ProjectorShell
|
||||
|
||||
class VaspConverter(ConverterTools):
|
||||
@ -55,7 +58,6 @@ class VaspConverter(ConverterTools):
|
||||
self.bands_subgrp = bands_subgrp
|
||||
self.misc_subgrp = misc_subgrp
|
||||
self.transp_subgrp = transp_subgrp
|
||||
self.fortran_to_replace = {'D':'E'}
|
||||
|
||||
# Checks if h5 file is there and repacks it if wanted:
|
||||
if (os.path.exists(self.hdf_file) and repacking):
|
||||
|
Loading…
Reference in New Issue
Block a user