Skip to content

Commit 4f97127

Browse files
committed
More sensitive date matching regex
1 parent 0acf656 commit 4f97127

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ coverage-vizgen uses a YAML dataset configuration file to specify settings for p
6969
* `s3_prefix` - S3 URI to upload MRFs to (if specified)
7070
* `idx_dir` - OnEarth idx directory to move MRF idx files to (if specified)
7171
* `is360` - Convert dataset from 0-360 bounds to -180 - 180 if true
72-
* `center_long` - The center longitude when convert from 0-360 (default: 0)
72+
* `center_long` - The center longitude when converting from 0-360 (default: 0)
7373
* `speed_vars` - List of `u` and `v` variables to use for converting to speed
7474

7575
### Example Configurations

bin/vizgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def create_mrf(input_files, config, layer_name, colormap, empty_tile):
390390
print('Generating MRF config ' + mrf_config)
391391
with open(mrf_config, 'w') as conf:
392392
xml = MRF_CONFIG_TEMPLATE
393-
match = re.findall(r'(\d{4}[_-]\d{2,}[_-]\d{2,})|(\d{4}[_-]\d{2,})', str(filename))
393+
match = re.findall(r'(\d{4}[_-]*\d{2,}[_-]*\d{2,})|(\d{4}[_-]*\d{2,})', str(filename))
394394
if len(match) > 0:
395395
for m in match[0]:
396396
if m != '':

0 commit comments

Comments
 (0)