Ticket #395 (closed enhancement: fixed)

Opened 10 years ago

Last modified 9 years ago

Support for non-numerical patterns in FilePattern

Reported by: curtis Owned by: melissa
Priority: minor Milestone: bio-formats-4.2.1
Component: bio-formats Severity: non-issue
Keywords: Cc: e.mackay@…, GBonamy@…
Blocked By: Blocking:

Description

FilePattern currently supports only numerical blocks. It would be nice to be able to use other characters as well, and support discrete lists as well as ranges. Examples:

  • Platename_<A-H><01-12>.zvi
  • ColorImage<R,G,B>.tif

Change History

comment:1 Changed 10 years ago by melissa

  • Cc GBonamy@… added

comment:2 Changed 10 years ago by curtis

It has been suggested that the most useful general form of this non-numerical support would be use of regular expressions. And this would be fairly easy to implement in Java given the built-in regex support.

comment:3 Changed 10 years ago by melissa

  • Milestone changed from bio-formats-4.2 to bio-formats-5.0

comment:4 Changed 9 years ago by melissa

  • Owner changed from curtis to melissa
  • Milestone changed from bio-formats-5.0 to bio-formats-4.2.1

comment:5 Changed 9 years ago by melissa

  • Status changed from new to closed
  • Resolution set to fixed

(In [7070]) Added support for non-numerical file pattern blocks, closes #395.

You can now specify patterns such as:

  • "<A-M>.tiff"
  • "<A-M:2>.tiff" (which would give you A.tiff, C.diff, E.tiff, etc.)
  • "<R,G,B>.tiff"
  • "<1,5,13>.tiff"
  • ".*.tiff"
Note: See TracTickets for help on using tickets.