Skip to content

Commit

Permalink
FIX: expand the list of pathnames for tch
Browse files Browse the repository at this point in the history
  • Loading branch information
audrism committed Jan 22, 2024
1 parent 39fb294 commit bb18fdb
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions oscar.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,24 @@ def _get_paths(dict raw_paths):
path_template = os.path.join(ppath, fname)
key_length = _key_length(path_template)
if not key_length:
warnings.warn("No keys found for path_template %s:\n%s" % (
ptype, path_template))
ppath = ppath .replace('da3_fast','da7_data/basemaps')
path_template = os.path.join(ppath, fname)
key_length = _key_length(path_template)
if not key_length:
ppath = ppath .replace('da7','da0')
path_template = os.path.join(ppath, fname)
key_length = _key_length(path_template)
if not key_length:
ppath = ppath .replace('da0','da5')
path_template = os.path.join(ppath, fname)
key_length = _key_length(path_template)
if not key_length:
ppath = ppath .replace('da5','da8')
path_template = os.path.join(ppath, fname)
key_length = _key_length(path_template)
if not key_length:
warnings.warn("No keys found for path_template %s:\n%s" % (
ptype, path_template))
VERSIONS[ptype] = pver
paths[ptype] = (
path_template.format(ver=pver, key='{key}'), key_length)
Expand Down

0 comments on commit bb18fdb

Please sign in to comment.