menu

neptune-community

A place where Neptune.ml users and developers come together to make things work

Channels
Team

can not upload source files with folder structure

August 6, 2019 at 10:38pm

can not upload source files with folder structure

August 6, 2019 at 10:38pm
I am not sure if it is the right way to do, but if I am trying to upload multiple source files with code below - no files get uploaded, not even the current file:
neptune.create_experiment(upload_source_files=get_filepaths('..'))
where get_filepaths('.') is taken from neptune codebase and returns the next list:
['..\configs\attr.yaml', '..\configs\attr_model.yaml', '..\features\data-pipeline.py', '..\utils\utils_data.py', '..\utils\utils_file.py']
it works only if I pass current folder like get_filepaths('.') that will return ['.\data-pipeline.py']

August 9, 2019 at 12:40pm
Hmm, I used it here and it saved the entire project structure.
I had something like this src/models/train_lgbm.py and I would run it via python src/models.train_lgbm.py so maybe that is why it worked.
  • reply
  • like

August 12, 2019 at 2:41pm
Hi, I think that we cannot pass '..' in the upload_source_files parameter. I tried and I was not able to upload file like this: upload_source_files='../my_code.py'.
  • reply
  • like
Can you implement it in neptune-client ?
Edited
  • reply
  • like