Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when I change the attributes if DataSaver with refresh=True #22

Open
jinserk opened this issue Aug 28, 2020 · 1 comment
Open
Labels
bug Something isn't working

Comments

@jinserk
Copy link

jinserk commented Aug 28, 2020

When I added attributes with DataSaver refresh=True, it gives an error like:

Traceback (most recent call last):
  File "/home/jinserk/.pyenv/versions/3.8.5/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/jinserk/.pyenv/versions/3.8.5/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/mnt/ssd2/works/kyulux/kyumlm/tddft/ann/feature.py", line 205, in <module>
    store_to_matorage(ds)
  File "/mnt/ssd2/works/kyulux/kyumlm/tddft/ann/feature.py", line 198, in store_to_matorage
    save_data_list(train_list, "train")
  File "/mnt/ssd2/works/kyulux/kyumlm/tddft/ann/feature.py", line 190, in save_data_list
    data_saver({
  File "/home/jinserk/.pyenv/versions/kyumlm/lib/python3.8/site-packages/matorage/data/saver.py", line 317, in __call__
    self._check_data_numpytype()
  File "/home/jinserk/.pyenv/versions/kyumlm/lib/python3.8/site-packages/matorage/data/saver.py", line 254, in _check_data_numpytype
    self._check_attr_name(name=name)
  File "/home/jinserk/.pyenv/versions/kyumlm/lib/python3.8/site-packages/matorage/data/saver.py", line 229, in _check_attr_name
    raise KeyError("attribute name {} is not exist!".format(name))
KeyError: 'attribute name inchikey is not exist!'

It seems to check the config attributes as well as the other params, or to reset the attributes when refresh=True.

@jinserk jinserk changed the title Error when I change the key list if DataSaver with refresh=True Error when I change the attributes if DataSaver with refresh=True Aug 28, 2020
@graykode
Copy link
Owner

Like the previous issue (#21), this error seems to be a problem of the list_object function overridden in the NAS. If that doesn't work, please ask again for me. Thanks

@graykode graykode added the bug Something isn't working label Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants