Skip to content

Commit

Permalink
Rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkleiven committed Oct 28, 2022
1 parent 0ad7806 commit fc31633
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:

- name: Run pytest with coverage
if: ${{ ( runner.os == 'Linux' ) && ( matrix.python-version == '3.9' ) }}
run: poetry run pytest -q --cov=psseio --cov-report=xml tests
run: poetry run pytest -q --cov=rawxio --cov-report=xml tests

- name: Upload coverage
if: ${{ ( runner.os == 'Linux' ) && ( matrix.python-version == '3.9' ) }}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
## Installation

```
pip install psseio
pip install rawxio
```

You can also install the in-development version with::

```
pip install psseio
pip install rawxio
```

## Documentation

To use the project:

```python
import psseio
import rawxio
```

## Development
Expand Down
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tool.poetry]
name = "psseio"
name = "rawxio"
version = "0.0.0"
description = "Import/Export rawx"
authors = ["Statnett Datascience <Datascience.Drift@Statnett.no>"]
repository = "https://github.com/statnett/psseio.git"
repository = "https://github.com/statnett/rawxio.git"

[tool.poetry.dependencies]
python = "^3.9"
Expand Down Expand Up @@ -65,7 +65,7 @@ precision = 2

[tool.coverage.run]
branch = true
source = ["psseio"]
source = ["rawxio"]

[tool.pytest.ini_options]
log_file = "pytest.log"
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions psseio/psse.py → rawxio/rawx.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
import hashlib
import json
import logging
import sys
from pathlib import Path
from typing import Any, Dict, List, Union
from uuid import UUID

import pandas as pd

from psseio.data_model import (
from rawxio.data_model import (
PARAMETER_SETS,
DataSetType,
get_pk_fields,
Expand All @@ -21,8 +20,6 @@

logger = logging.getLogger(__name__)

HASH_SHIFT = sys.maxsize + 1 # Amount hash values must be shifted to avoid negative numbers


def get_rawx_record_type(data: Union[List[Any], List[List[Any]]]) -> DataSetType:
return DataSetType.DATA_SET if isinstance(data[0], list) else DataSetType.PARAMETER_SET
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import pandas as pd
import pytest

from psseio.psse import raise_on_missing_required_field, read_rawx, write_rawx
from psseio.utils import one2zero_indexed, zero2one_indexed
from rawxio.rawx import raise_on_missing_required_field, read_rawx, write_rawx
from rawxio.utils import one2zero_indexed, zero2one_indexed


def minimal_rawx() -> Path:
Expand Down

0 comments on commit fc31633

Please sign in to comment.