Skip to content

Commit 7dcfc1d

Browse files
authored
Renames package to RATapi (#48)
1 parent c707549 commit 7dcfc1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+393
-393
lines changed

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ jobs:
4949
- name: Install and Test with pytest
5050
run: |
5151
python -m pip install -e .[Dev]
52-
pytest tests/ --cov=RATpy --cov-report=term
52+
pytest tests/ --cov=RATapi --cov-report=term

RATapi/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from RATapi import events, models
2+
from RATapi.classlist import ClassList
3+
from RATapi.controls import Controls
4+
from RATapi.project import Project
5+
from RATapi.run import run
6+
from RATapi.utils import plotting
7+
8+
__all__ = ["models", "events", "ClassList", "Controls", "Project", "run", "plotting"]
File renamed without changes.

RATpy/controls.py renamed to RATapi/controls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
model_validator,
1212
)
1313

14-
from RATpy.utils.custom_errors import custom_pydantic_validation_error
15-
from RATpy.utils.enums import BoundHandling, Display, Parallel, Procedures, Strategies
14+
from RATapi.utils.custom_errors import custom_pydantic_validation_error
15+
from RATapi.utils.enums import BoundHandling, Display, Parallel, Procedures, Strategies
1616

1717
common_fields = ["procedure", "parallel", "calcSldDuringFit", "resampleParams", "display"]
1818
update_fields = ["updateFreq", "updatePlotFreq"]

RATpy/events.py renamed to RATapi/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from typing import Callable, List, Union
33

4-
from RATpy.rat_core import EventBridge, EventTypes, PlotEventData, ProgressEventData
4+
from RATapi.rat_core import EventBridge, EventTypes, PlotEventData, ProgressEventData
55

66

77
def notify(event_type: EventTypes, data: Union[str, PlotEventData, ProgressEventData]) -> None:
File renamed without changes.

RATpy/examples/absorption/absorption.py renamed to RATapi/examples/absorption/absorption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import numpy as np
77

8-
import RATpy as RAT
8+
import RATapi as RAT
99

1010
problem = RAT.Project(
1111
name="Absorption example",

0 commit comments

Comments
 (0)