Skip to content

Commit

Permalink
More sensitive date matching regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroberts committed Nov 8, 2023
1 parent 0acf656 commit 4f97127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ coverage-vizgen uses a YAML dataset configuration file to specify settings for p
* `s3_prefix` - S3 URI to upload MRFs to (if specified)
* `idx_dir` - OnEarth idx directory to move MRF idx files to (if specified)
* `is360` - Convert dataset from 0-360 bounds to -180 - 180 if true
* `center_long` - The center longitude when convert from 0-360 (default: 0)
* `center_long` - The center longitude when converting from 0-360 (default: 0)
* `speed_vars` - List of `u` and `v` variables to use for converting to speed

### Example Configurations
Expand Down
2 changes: 1 addition & 1 deletion bin/vizgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def create_mrf(input_files, config, layer_name, colormap, empty_tile):
print('Generating MRF config ' + mrf_config)
with open(mrf_config, 'w') as conf:
xml = MRF_CONFIG_TEMPLATE
match = re.findall(r'(\d{4}[_-]\d{2,}[_-]\d{2,})|(\d{4}[_-]\d{2,})', str(filename))
match = re.findall(r'(\d{4}[_-]*\d{2,}[_-]*\d{2,})|(\d{4}[_-]*\d{2,})', str(filename))
if len(match) > 0:
for m in match[0]:
if m != '':
Expand Down

0 comments on commit 4f97127

Please sign in to comment.