angelolab / angelolab/alpineer

`list_files` and `list_folders` don't handle substrings between delimiters correctly

未关闭
#49 0 条评论 0 个 reaction 已指派 1 人 已被 @srivarra 认领 在 GitHub 查看
bug
主要语言
Python
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**

When matching substrings, the current functionality of both `list_files` and `list_folders` requires the full substring between delimiters to be separated.

For example, in the string `"fov1_img.tiff"`:
1. `"fov1"` will match this, but not `"fov"`
2. `"tiff"` will match this, but not `"tif"`
3. `".tiff"` will also not match this, since `"."` is a delimiter. This happens because the current scheme filters out any non-alphanum characters from the string to search (`"fov1_img.tiff"` becomes `["fov1", "img", "tiff"]`).

**Expected behavior**

Bryan's implementation was useful for ezSeg, but we will need to support a more loose matching scheme. An additional flag with extra control flow logic would be the easiest solution. So we'd then support:

1. Exact full matching: the full string has to match
2. Exact delimiter-separated matching: only a part of the string has to match, but that part has to be a portion separated out by delimiters
3. Soft matching: the substring can match any part of the string, regardless of delimiter separation

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。