ContinuumIO / anaconda-package-data

Conda package download data
Creative Commons Attribution 4.0 International
98 stars 36 forks source link

doc: include "hourly" directory in filename template per the Intake yaml file #14

Closed tswast closed 4 years ago

tswast commented 4 years ago

I could not download data according to the template in the README until I added the hourly/ piece to the path.

Without hourly:

$ aws2 s3 cp s3://anaconda-package-data/conda/2019/10/2019-10-31.parquet .
fatal error: An error occurred (404) when calling the HeadObject operation: \
Key "conda/2019/10/2019-10-31.parquet" does not exist

With hourly:

$ aws2 s3 cp s3://anaconda-package-data/conda/hourly/2019/10/2019-10-31.parquet .
download: s3://anaconda-package-data/conda/hourly/2019/10/2019-10-31.parquet \
to ./2019-10-31.parquet

See Intake YAML file:

urlpath: 's3://anaconda-package-data/conda/hourly/{{ "%04d" | format(year) }}/{{ "%02d" | format(month) }}/'
  '{{ "%04d" | format(year) }}-{{ "%02d" | format(month) }}-{{ "%02d" | format(day) }}.parquet'
sophiamyang commented 4 years ago

Good catch! Thanks!