-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Hello,
When I run the code on bulk_data, I found there is a json decoder error using ase.io.read(). Do you have the same problem?
Traceback (most recent call last):
File "main.py", line 552, in
main()
File "main.py", line 234, in main
config["Processing"],
File "/work/nihang/MatDeepLearn_new/matdeeplearn/process/process.py", line 105, in get_dataset
process_data(data_path, processed_path, processing_args)
File "/work/nihang/MatDeepLearn_new/matdeeplearn/process/process.py", line 329, in process_data
data_path, structure_id + "." + processing_args["data_format"]
File "/home/nihang/.local/lib/python3.7/site-packages/ase/io/formats.py", line 645, in read
parallel=parallel, **kwargs))
File "/home/nihang/.local/lib/python3.7/site-packages/ase/parallel.py", line 264, in new_generator
for result in generator(*args, **kwargs):
File "/home/nihang/.local/lib/python3.7/site-packages/ase/io/formats.py", line 713, in _iread
for dct in io.read(fd, *args, **kwargs):
File "/home/nihang/.local/lib/python3.7/site-packages/ase/io/db.py", line 22, in read_db
start, stop, step = index.indices(db.count())
File "/home/nihang/.local/lib/python3.7/site-packages/ase/db/core.py", line 495, in count
for row in self.select(selection, **kwargs):
File "/home/nihang/.local/lib/python3.7/site-packages/ase/parallel.py", line 264, in new_generator
for result in generator(*args, **kwargs):
File "/home/nihang/.local/lib/python3.7/site-packages/ase/db/core.py", line 484, in select
columns=columns):
File "/home/nihang/.local/lib/python3.7/site-packages/ase/db/jsondb.py", line 170, in _select
bigdct, ids, nextid = self._read_json()
File "/home/nihang/.local/lib/python3.7/site-packages/ase/db/jsondb.py", line 76, in _read_json
bigdct = decode(self.filename.read())
File "/home/nihang/.local/lib/python3.7/site-packages/ase/io/jsonio.py", line 141, in decode
obj = mydecode(txt)
File "/work/nihang/ENVS/mat_env/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/work/nihang/ENVS/mat_env/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)