Skip to content

Commit

Permalink
Merge pull request #50 from sameeul/v204
Browse files Browse the repository at this point in the history
Fix infer_pattern regression and prep v2.0.4
  • Loading branch information
sameeul authored Nov 8, 2023
2 parents 5a53583 + 8976b46 commit 595d3f4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ In each of these filenames, there are three descriptors of the image: the row, t
To have ``filepattern`` guess what the pattern is for a directory, the static method ``infer_pattern`` can be used:

```python
import filepattern.functions as fp
import filepattern as fp

path = 'path/to/directory'

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.polusai</groupId>
<groupId>ai.polus.utils</groupId>
<artifactId>filepattern</artifactId>
<version>1.0-SNAPSHOT</version>
<version>2.0.4</version>

<properties>
<maven.compiler.source>1.7</maven.compiler.source>
Expand Down
4 changes: 3 additions & 1 deletion src/filepattern/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

from .filepattern import FilePattern

__all__ = ["FilePattern"]
from .functions import infer_pattern, get_regex

__all__ = ["FilePattern", "infer_pattern", "get_regex"]
from . import _version
__version__ = _version.get_versions()['version']
2 changes: 1 addition & 1 deletion src/filepattern/cpp/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#define VERSIONH_INCLUDED

#define PROJECT_NAME "filepattern"
#define PROJECT_VER "2.0.3"
#define PROJECT_VER "2.0.4"

#endif // VERSIONH_INCLUDED
2 changes: 1 addition & 1 deletion tests/test_inferpattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import pytest
from pathlib import Path
import filepattern.functions as fp
import filepattern as fp
import os

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

0 comments on commit 595d3f4

Please sign in to comment.