Skip to content

Commit a23cbac

Browse files
committed
Rename from osi to opensyndrome
1 parent 5212984 commit a23cbac

15 files changed

Lines changed: 33 additions & 31 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ cython_debug/
173173
# temporary
174174
schema.json
175175
ollama_schema.json
176-
osi/to_be_updated__schema.py
176+
opensyndrome/to_be_updated__schema.py
177177

178178
# data
179179
*.csv

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ COPY . /app
88

99
RUN poetry config virtualenvs.create false && poetry install
1010

11-
ENTRYPOINT ["poetry", "run", "osi"]
11+
ENTRYPOINT ["uv", "run", "osi"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ ollama_schema:
1717
--use-unique-items-as-set \
1818
--use-default \
1919
--input $(SCHEMA_FILE) \
20-
--output osi/to_be_updated__schema.py
20+
--output opensyndrome/to_be_updated__schema.py

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ From PyPi, install the package with `pip install opensyndrome`. Then run it with
1111
From Docker, you can run the following command to build the image, tagged `osi`:
1212

1313
```bash
14-
docker build -t osi .
14+
docker build -t opensyndrome .
1515
```
1616

1717
Run the container interactively, removing it when it exits
1818

1919
```bash
20-
docker run --rm osi
20+
docker run --rm opensyndrome
2121
```
2222

2323
To read a `.env` file, mount it:
2424

2525
```bash
2626
docker run --rm -it \
2727
-v "$(pwd)/.env:/app/.env:ro" \
28-
osi
28+
opensyndrome
2929
```
3030

3131
To name the container and keep it around:
3232

3333
```bash
34-
docker run --name osi-cli -it osi
34+
docker run --name opensyndrome-cli -it opensyndrome
3535
```
3636

3737
## Usage

notebooks/osi_filter_prototype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _():
1818
import plotly.graph_objects as go
1919
from dotenv import load_dotenv
2020

21-
from osi.filtering import (
21+
from opensyndrome.filtering import (
2222
filter_cases_per_definitions,
2323
load_definition,
2424
overlap_definitions,

osi/cli.py renamed to opensyndrome/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
import jsonschema
66
import click
77

8-
from osi.converters import (
8+
from opensyndrome.converters import (
99
generate_machine_readable_format,
1010
generate_human_readable_format,
1111
)
12-
from osi.filtering import get_schema_filepath, get_definition_dir
13-
from osi.validators import validate_machine_readable_format
12+
from opensyndrome.filtering import get_schema_filepath, get_definition_dir
13+
from opensyndrome.validators import validate_machine_readable_format
1414

1515

1616
@click.group()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from dotenv import load_dotenv
99
from ollama import chat
1010

11-
from osi.filtering import get_schema_filepath
12-
from osi.schema import OpenSyndromeCaseDefinitionSchema
11+
from opensyndrome.filtering import get_schema_filepath
12+
from opensyndrome.schema import OpenSyndromeCaseDefinitionSchema
1313

1414
load_dotenv()
1515
logger = logging.getLogger(__name__)
File renamed without changes.

0 commit comments

Comments
 (0)