Skip to content

Commit 595d3f4

Browse files
authored
Merge pull request #50 from sameeul/v204
Fix infer_pattern regression and prep v2.0.4
2 parents 5a53583 + 8976b46 commit 595d3f4

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ In each of these filenames, there are three descriptors of the image: the row, t
8686
To have ``filepattern`` guess what the pattern is for a directory, the static method ``infer_pattern`` can be used:
8787

8888
```python
89-
import filepattern.functions as fp
89+
import filepattern as fp
9090

9191
path = 'path/to/directory'
9292

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>org.polusai</groupId>
5+
<groupId>ai.polus.utils</groupId>
66
<artifactId>filepattern</artifactId>
7-
<version>1.0-SNAPSHOT</version>
7+
<version>2.0.4</version>
88

99
<properties>
1010
<maven.compiler.source>1.7</maven.compiler.source>

src/filepattern/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
from .filepattern import FilePattern
55

6-
__all__ = ["FilePattern"]
6+
from .functions import infer_pattern, get_regex
7+
8+
__all__ = ["FilePattern", "infer_pattern", "get_regex"]
79
from . import _version
810
__version__ = _version.get_versions()['version']

src/filepattern/cpp/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
#define VERSIONH_INCLUDED
33

44
#define PROJECT_NAME "filepattern"
5-
#define PROJECT_VER "2.0.3"
5+
#define PROJECT_VER "2.0.4"
66

77
#endif // VERSIONH_INCLUDED

tests/test_inferpattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import json
33
import pytest
44
from pathlib import Path
5-
import filepattern.functions as fp
5+
import filepattern as fp
66
import os
77

88
json_path = Path(__file__).parent.parent.joinpath("plugin.json")

0 commit comments

Comments
 (0)