mirror of
https://github.com/triqs/dft_tools
synced 2025-05-01 04:34:57 +02:00
[fix] issue 266: unicode characters in elk files (#267)
* replace unicode characters in elk files by ascii characters if present
This commit is contained in:
parent
c19cbe7971
commit
4b018a25f3
@ -89,7 +89,10 @@ class ElkConverter(ConverterTools,Elk_tools,read_Elk):
|
||||
self.misc_subgrp = misc_subgrp
|
||||
self.transp_subgrp = transp_subgrp
|
||||
self.cont_subgrp = cont_subgrp
|
||||
self.fortran_to_replace = {'D': 'E'}
|
||||
self.fortran_to_replace = {'D': 'E',
|
||||
# replaces unicode characters with ascii ones if present
|
||||
'┌': '+', '┐': '+', '└': '+', '┘': '+',
|
||||
'─': '-', '│': '|'}
|
||||
|
||||
# Checks if h5 file is there and repacks it if wanted:
|
||||
if (os.path.exists(self.hdf_file) and repacking):
|
||||
|
Loading…
x
Reference in New Issue
Block a user