CITE-seq-Count icon indicating copy to clipboard operation
CITE-seq-Count copied to clipboard

Unable to load run_report.yaml

Open hisplan opened this issue 3 years ago • 3 comments

import yaml

with open(os.path.join(path_data, "report/run_report.yaml"), "rt") as fin:
  report = yaml.load(fin, Loader=yaml.FullLoader)        

I'm getting this error:

while scanning for the next token
found character '\t' that cannot start any token

I believe YAML shouldn't include tabs as indentation. I'm using YAML 5.3.1.

hisplan avatar Aug 28 '20 11:08 hisplan

Hey @hisplan and thank you for your issue.

You are totally right. I will include this in the future release.

Thank you.

Hoohm avatar Sep 05 '20 15:09 Hoohm

Any updates on this issue? Snooped around the dev branch and it looks like it's still custom formatting rather than using pyyaml or another package.

Currently getting around it by doing:

import yaml

with open("path/to/run_report.yaml", "r") as fin:
    content = fin.read().replace("\t", "  ")
    report = yaml.load(content, Loader=yaml.FullLoader)

wflynny avatar Sep 17 '21 21:09 wflynny

Should be fixed in the latest version

Hoohm avatar Nov 21 '21 19:11 Hoohm