Skip to content

Commit

Permalink
Change tactic slightly: rather than extend the single digit template,
Browse files Browse the repository at this point in the history
make a new template that includes the underscore character, as that
appears to be part of the standard Rigaku CAP filename format.
  • Loading branch information
dagewa committed Mar 16, 2024
1 parent 34d15fa commit c7aa87a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dxtbx/model/scan_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
r"([0-9]{2,12})\.(.*)",
r"(.*)\.([0-9]{2,12})_(.*)",
r"(.*)\.([0-9]{2,12})(.*)",
r"(.*)\.([0-9]{1,12})(.*)",
r"(.*)\.([0-9]{1,12})_(.*)",
r"(.*)\.([0-9]{1})(.*)",
]

joiners = [".", "_", "", ""]
joiners = [".", "_", "", "_", ""]

compiled_patterns = [re.compile(pattern) for pattern in patterns]

Expand Down

0 comments on commit c7aa87a

Please sign in to comment.