From e89737c4828fc9220a9f24cc424f14ebdbdd0c13 Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Wed, 5 Jun 2024 13:09:42 +0100 Subject: [PATCH] Chore: Rename src folder, delete example tests Signed-off-by: Matthew Watkins --- .../OSC/annotations_training.xlsx | Bin .../OSC/kpi_mapping.csv | 0 .../OSC/output_curator.csv | 0 .../OSC/result.json | 0 .../OSC/shell_annual_report_2019.pdf | Bin .../data/train_data.csv | 0 .../inference.py | 0 .../inference_demo.ipynb | 0 .../make_sample_training_data.ipynb | 0 .../make_training_data_from_curator.py | 0 .../train_sentence_transformer.ipynb | 0 tests/conftest.py | 10 -------- tests/test_osc_data_extractor.py | 24 ------------------ 13 files changed, 34 deletions(-) rename src/{relevance_detector => osc-transformer-based-extractor}/OSC/annotations_training.xlsx (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/OSC/kpi_mapping.csv (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/OSC/output_curator.csv (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/OSC/result.json (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/OSC/shell_annual_report_2019.pdf (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/data/train_data.csv (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/inference.py (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/inference_demo.ipynb (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/make_sample_training_data.ipynb (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/make_training_data_from_curator.py (100%) rename src/{relevance_detector => osc-transformer-based-extractor}/train_sentence_transformer.ipynb (100%) delete mode 100644 tests/conftest.py delete mode 100644 tests/test_osc_data_extractor.py diff --git a/src/relevance_detector/OSC/annotations_training.xlsx b/src/osc-transformer-based-extractor/OSC/annotations_training.xlsx similarity index 100% rename from src/relevance_detector/OSC/annotations_training.xlsx rename to src/osc-transformer-based-extractor/OSC/annotations_training.xlsx diff --git a/src/relevance_detector/OSC/kpi_mapping.csv b/src/osc-transformer-based-extractor/OSC/kpi_mapping.csv similarity index 100% rename from src/relevance_detector/OSC/kpi_mapping.csv rename to src/osc-transformer-based-extractor/OSC/kpi_mapping.csv diff --git a/src/relevance_detector/OSC/output_curator.csv b/src/osc-transformer-based-extractor/OSC/output_curator.csv similarity index 100% rename from src/relevance_detector/OSC/output_curator.csv rename to src/osc-transformer-based-extractor/OSC/output_curator.csv diff --git a/src/relevance_detector/OSC/result.json b/src/osc-transformer-based-extractor/OSC/result.json similarity index 100% rename from src/relevance_detector/OSC/result.json rename to src/osc-transformer-based-extractor/OSC/result.json diff --git a/src/relevance_detector/OSC/shell_annual_report_2019.pdf b/src/osc-transformer-based-extractor/OSC/shell_annual_report_2019.pdf similarity index 100% rename from src/relevance_detector/OSC/shell_annual_report_2019.pdf rename to src/osc-transformer-based-extractor/OSC/shell_annual_report_2019.pdf diff --git a/src/relevance_detector/data/train_data.csv b/src/osc-transformer-based-extractor/data/train_data.csv similarity index 100% rename from src/relevance_detector/data/train_data.csv rename to src/osc-transformer-based-extractor/data/train_data.csv diff --git a/src/relevance_detector/inference.py b/src/osc-transformer-based-extractor/inference.py similarity index 100% rename from src/relevance_detector/inference.py rename to src/osc-transformer-based-extractor/inference.py diff --git a/src/relevance_detector/inference_demo.ipynb b/src/osc-transformer-based-extractor/inference_demo.ipynb similarity index 100% rename from src/relevance_detector/inference_demo.ipynb rename to src/osc-transformer-based-extractor/inference_demo.ipynb diff --git a/src/relevance_detector/make_sample_training_data.ipynb b/src/osc-transformer-based-extractor/make_sample_training_data.ipynb similarity index 100% rename from src/relevance_detector/make_sample_training_data.ipynb rename to src/osc-transformer-based-extractor/make_sample_training_data.ipynb diff --git a/src/relevance_detector/make_training_data_from_curator.py b/src/osc-transformer-based-extractor/make_training_data_from_curator.py similarity index 100% rename from src/relevance_detector/make_training_data_from_curator.py rename to src/osc-transformer-based-extractor/make_training_data_from_curator.py diff --git a/src/relevance_detector/train_sentence_transformer.ipynb b/src/osc-transformer-based-extractor/train_sentence_transformer.ipynb similarity index 100% rename from src/relevance_detector/train_sentence_transformer.ipynb rename to src/osc-transformer-based-extractor/train_sentence_transformer.ipynb diff --git a/tests/conftest.py b/tests/conftest.py deleted file mode 100644 index c0d0074..0000000 --- a/tests/conftest.py +++ /dev/null @@ -1,10 +0,0 @@ -""" -Dummy conftest.py for osc_transformer_based_extractor. - -If you don't know what this is for, just leave it empty. -Read more about conftest.py under: -- https://docs.pytest.org/en/stable/fixture.html -- https://docs.pytest.org/en/stable/writing_plugins.html -""" - -# import pytest diff --git a/tests/test_osc_data_extractor.py b/tests/test_osc_data_extractor.py deleted file mode 100644 index c13407f..0000000 --- a/tests/test_osc_data_extractor.py +++ /dev/null @@ -1,24 +0,0 @@ -import pytest -from osc_transformer_based_extractor.skeleton import fib, main - -__author__ = "Matthew Watkins" -__copyright__ = "Matthew Watkins" -__license__ = "MIT" - - -def test_fib(): - """API Tests""" - assert fib(1) == 1 - assert fib(2) == 1 - assert fib(7) == 13 - with pytest.raises(AssertionError): - fib(-10) - - -def test_main(capsys): - """CLI Tests""" - # capsys is a pytest fixture that allows asserts against stdout/stderr - # https://docs.pytest.org/en/stable/capture.html - main(["7"]) - captured = capsys.readouterr() - assert "The 7-th Fibonacci number is 13" in captured.out