ThreeWToolkit 1.0.2__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/PKG-INFO +1 -1
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/pyproject.toml +1 -1
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_downloader.py +10 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_pipeline.py +1 -1
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/downloader.py +1 -3
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/PKG-INFO +1 -1
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/LICENSE.md +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/README.md +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/setup.cfg +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_assessment_visualization.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_data_loader.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_dataset.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_example.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_extract_exponential_statistical_features.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_extract_statistical_features.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_extract_wavelet_features.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_load_model.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_metrics.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_mlp.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_model_assessment.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_plot_correlation_heatmap.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_plot_multiple_series.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_plot_series.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_preprocessing.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_report_generation.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_save_best_model.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_sklearn_models.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_template_manager.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_trainer.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_trainer_logger.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/README.md +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/assessment/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/assessment/assessment_visualizations.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/assessment/model_assess.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/constants.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_assessment.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_assessment_visualization.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_dataset.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_feature_extractor.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_metrics.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_model_trainer.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_models.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_preprocessing.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_step.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_time_series_holdout.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/enums.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_loader/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_loader/csv_data_loader.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/base_visualizer.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/correlation_heatmap.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_fft.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_multiple_series.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_series.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_utils.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plots.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/seasonal_decomposition.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/three_w_chart.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/wavelet_spectrogram.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/dataset/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/dataset/parquet_dataset.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/extract_exponential_statistics_features.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/extract_statistical_features.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/extract_wavelet_features.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/metrics/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/metrics/_classification.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/metrics/_regression.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/models/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/models/mlp.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/models/sklearn_models.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/pipeline.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/preprocessing/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/preprocessing/_data_processing.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/reports/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/reports/report_generation.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/trainer/trainer.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/__init__.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/data_utils.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/general_utils.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/model_recorder.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/template_manager.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/trainer_logger.py +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/SOURCES.txt +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/dependency_links.txt +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/requires.txt +0 -0
- {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ThreeWToolkit
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: A modular and open-source AI toolkit for time-series processing, aimed at fault detection and classification in oil well operation
|
|
5
5
|
Author-email: Ricardo Emanuel Vaz Vargas <ricardo.vargas@petrobras.com.br>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ThreeWToolkit"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.3"
|
|
4
4
|
description = "A modular and open-source AI toolkit for time-series processing, aimed at fault detection and classification in oil well operation"
|
|
5
5
|
readme = { file = "toolkit/ThreeWToolkit/README.md", content-type = "text/markdown" }
|
|
6
6
|
license = { text = "Apache-2.0" }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import pytest
|
|
3
|
+
import warnings
|
|
3
4
|
import requests # type: ignore
|
|
4
5
|
import time
|
|
5
6
|
|
|
@@ -43,6 +44,11 @@ class TestFigshareURLS:
|
|
|
43
44
|
known_files.raise_for_status()
|
|
44
45
|
metadata = json.loads(known_files.text)
|
|
45
46
|
metadata_dict[version] = metadata
|
|
47
|
+
except requests.exceptions.HTTPError as http_err:
|
|
48
|
+
warnings.warn(
|
|
49
|
+
f"Failed to fetch metadata for version {version}: {http_err}"
|
|
50
|
+
)
|
|
51
|
+
pytest.skip(f"Skipping tests for version {version} due to HTTP error.")
|
|
46
52
|
except Exception as e:
|
|
47
53
|
pytest.fail(f"Failed to fetch metadata for version {version}: {e}")
|
|
48
54
|
time.sleep(1) # Figshare prefers 1 fetch per second at most.
|
|
@@ -56,6 +62,7 @@ class TestFigshareURLS:
|
|
|
56
62
|
|
|
57
63
|
assert meta["name"] == "3w_dataset_1.0.0.zip"
|
|
58
64
|
assert meta["supplied_md5"] == "189eb151fa07cf27f82976575586df1a"
|
|
65
|
+
assert "download_url" in meta
|
|
59
66
|
|
|
60
67
|
def test_v_1_1_0(self, all_metadata):
|
|
61
68
|
metadata = all_metadata["1.1.0"]
|
|
@@ -64,6 +71,7 @@ class TestFigshareURLS:
|
|
|
64
71
|
|
|
65
72
|
assert meta["name"] == "3w_dataset_1.1.0.zip"
|
|
66
73
|
assert meta["supplied_md5"] == "e74641bb6b8a0466bb1f28c57a9163f9"
|
|
74
|
+
assert "download_url" in meta
|
|
67
75
|
|
|
68
76
|
def test_v_1_1_1(self, all_metadata):
|
|
69
77
|
metadata = all_metadata["1.1.1"]
|
|
@@ -72,6 +80,7 @@ class TestFigshareURLS:
|
|
|
72
80
|
|
|
73
81
|
assert meta["name"] == "3w_dataset_1.1.1.zip"
|
|
74
82
|
assert meta["supplied_md5"] == "ae105a8abff4ac33058fea3ebb991fc2"
|
|
83
|
+
assert "download_url" in meta
|
|
75
84
|
|
|
76
85
|
def test_v_2_0_0(self, all_metadata):
|
|
77
86
|
metadata = all_metadata["2.0.0"]
|
|
@@ -80,3 +89,4 @@ class TestFigshareURLS:
|
|
|
80
89
|
|
|
81
90
|
assert meta["name"] == "3w_dataset_2.0.0.zip"
|
|
82
91
|
assert meta["supplied_md5"] == "2c23b87b60c5d19ed9cf9559efa6ffa7"
|
|
92
|
+
assert "download_url" in meta
|
|
@@ -143,9 +143,7 @@ def get_figshare_data(
|
|
|
143
143
|
downloaded = []
|
|
144
144
|
for meta in metadata: # iterate through multiple files if present
|
|
145
145
|
# Stream download from Figshare
|
|
146
|
-
stream = requests.get(
|
|
147
|
-
FIGSHARE_BASE_URL + "/file/download/" + str(meta["id"]), stream=True
|
|
148
|
-
)
|
|
146
|
+
stream = requests.get(meta["download_url"], stream=True)
|
|
149
147
|
stream_size = int(stream.headers.get("content-length", 0))
|
|
150
148
|
hasher = hashlib.sha256()
|
|
151
149
|
file_path = path / meta["name"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ThreeWToolkit
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: A modular and open-source AI toolkit for time-series processing, aimed at fault detection and classification in oil well operation
|
|
5
5
|
Author-email: Ricardo Emanuel Vaz Vargas <ricardo.vargas@petrobras.com.br>
|
|
6
6
|
License: Apache-2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_extract_exponential_statistical_features.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/assessment/model_assess.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_feature_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_model_trainer.py
RENAMED
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_preprocessing.py
RENAMED
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_time_series_holdout.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_loader/csv_data_loader.py
RENAMED
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_fft.py
RENAMED
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_series.py
RENAMED
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_utils.py
RENAMED
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plots.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/dataset/parquet_dataset.py
RENAMED
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/metrics/_classification.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/preprocessing/_data_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/reports/report_generation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|