yaml.scanner.ScannerError
when initializing PEP downloaded with geofetch
#80
Milestone
yaml.scanner.ScannerError
when initializing PEP downloaded with geofetch
#80
I was trying to initialize a PEP I got from GEO using
geofetch
andpeppy
threw this error:yaml.scanner.ScannerError: mapping values are not allowed here
Here is the project config:
I think this is an issue with the
sample_modifiers
section. If I wrap theappend
modifiers in a string with double quotes, the issue resolves. However, I get a second error.This time
peppy
throws aTypeError: Provided argument has to be a List[str] or a str, got 'NoneType'
. I was able to solve this by removing entirely thesubsample_table: null
line. Then the project gets initialized properly.I think there are two "bugs" here.
geofetch
doesn't account for colons messing with the key-value syntax ofyaml
files.subsample_table
key ofnull
breaks apeppy.Project()
instantiation. I am wondering if we should either not include the subsample table path in the config file if it doesn't exist or changepeppy
to permitnull
subsample tables.The text was updated successfully, but these errors were encountered: