8000 data_dir always falling back to legacy_data_dir · Issue #4659 · scikit-image/scikit-image · GitHub
[go: up one dir, main page]

Skip t 8000 o content
data_dir always falling back to legacy_data_dir #4659
@tlambert03

Description

@tlambert03

Description

I'm not sure if I'm misunderstanding how I'm supposed to access the new pooch-handled data... but it seems that if all goes according to plan with the download in data.__init__, the data_dir variable will always fall back on the legacy_data_dir. (i.e. if there's no break statement in the following clause, it will go to the else statement):

# Fetch all legacy data so that it is available by default
for filename in legacy_registry:
_fetch(filename)
else:
# Without pooch, fallback on the standard data directory
# which for now, includes a few limited data samples
data_dir = legacy_data_dir

am I missing something?

PS. thank you and congrats on the new release!

Version information

3.8.2 | packaged by conda-forge | (default, Mar 23 2020, 17:55:48)
[Clang 9.0.1 ]
macOS-10.13.6-x86_64-i386-64bit
scikit-image version: 0.17.0
numpy version: 1.18.4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0