Skip to content

Commit

Permalink
Simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Jan 27, 2025
1 parent f28e5c5 commit 455b749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchgeo/datasets/ssl4eo.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class _Metadata(TypedDict):
'filename': 's1.tar.gz',
'md5': '51ee23b33eb0a2f920bda25225072f3a',
'bands': ['VV', 'VH'],
'filename_regex': r'^S1[AB]_(?P<mode>SM|IW|EW|WV)_.{9}_(?P<date>\d{8}T\d{6})',
'filename_regex': r'^.{16}_(?P<date>\d{8}T\d{6})',
},
's2c': {
'filename': 's2_l1c.tar.gz',
Expand Down

0 comments on commit 455b749

Please sign in to comment.