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.
Files changed (89) hide show
  1. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/PKG-INFO +1 -1
  2. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/pyproject.toml +1 -1
  3. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_downloader.py +10 -0
  4. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_pipeline.py +1 -1
  5. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/downloader.py +1 -3
  6. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/PKG-INFO +1 -1
  7. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/LICENSE.md +0 -0
  8. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/README.md +0 -0
  9. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/setup.cfg +0 -0
  10. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_assessment_visualization.py +0 -0
  11. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_data_loader.py +0 -0
  12. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_dataset.py +0 -0
  13. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_example.py +0 -0
  14. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_extract_exponential_statistical_features.py +0 -0
  15. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_extract_statistical_features.py +0 -0
  16. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_extract_wavelet_features.py +0 -0
  17. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_load_model.py +0 -0
  18. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_metrics.py +0 -0
  19. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_mlp.py +0 -0
  20. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_model_assessment.py +0 -0
  21. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_plot_correlation_heatmap.py +0 -0
  22. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_plot_multiple_series.py +0 -0
  23. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_plot_series.py +0 -0
  24. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_preprocessing.py +0 -0
  25. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_report_generation.py +0 -0
  26. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_save_best_model.py +0 -0
  27. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_sklearn_models.py +0 -0
  28. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_template_manager.py +0 -0
  29. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_trainer.py +0 -0
  30. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/tests/test_trainer_logger.py +0 -0
  31. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/README.md +0 -0
  32. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/__init__.py +0 -0
  33. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/assessment/__init__.py +0 -0
  34. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/assessment/assessment_visualizations.py +0 -0
  35. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/assessment/model_assess.py +0 -0
  36. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/constants.py +0 -0
  37. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/__init__.py +0 -0
  38. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_assessment.py +0 -0
  39. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_assessment_visualization.py +0 -0
  40. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_dataset.py +0 -0
  41. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_feature_extractor.py +0 -0
  42. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_metrics.py +0 -0
  43. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_model_trainer.py +0 -0
  44. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_models.py +0 -0
  45. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_preprocessing.py +0 -0
  46. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_step.py +0 -0
  47. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/base_time_series_holdout.py +0 -0
  48. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/core/enums.py +0 -0
  49. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_loader/__init__.py +0 -0
  50. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_loader/csv_data_loader.py +0 -0
  51. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/__init__.py +0 -0
  52. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/base_visualizer.py +0 -0
  53. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/correlation_heatmap.py +0 -0
  54. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_fft.py +0 -0
  55. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_multiple_series.py +0 -0
  56. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_series.py +0 -0
  57. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plot_utils.py +0 -0
  58. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/plots.py +0 -0
  59. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/seasonal_decomposition.py +0 -0
  60. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/three_w_chart.py +0 -0
  61. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/data_visualization/wavelet_spectrogram.py +0 -0
  62. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/dataset/__init__.py +0 -0
  63. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/dataset/parquet_dataset.py +0 -0
  64. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/__init__.py +0 -0
  65. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/extract_exponential_statistics_features.py +0 -0
  66. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/extract_statistical_features.py +0 -0
  67. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/feature_extraction/extract_wavelet_features.py +0 -0
  68. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/metrics/__init__.py +0 -0
  69. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/metrics/_classification.py +0 -0
  70. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/metrics/_regression.py +0 -0
  71. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/models/__init__.py +0 -0
  72. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/models/mlp.py +0 -0
  73. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/models/sklearn_models.py +0 -0
  74. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/pipeline.py +0 -0
  75. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/preprocessing/__init__.py +0 -0
  76. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/preprocessing/_data_processing.py +0 -0
  77. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/reports/__init__.py +0 -0
  78. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/reports/report_generation.py +0 -0
  79. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/trainer/trainer.py +0 -0
  80. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/__init__.py +0 -0
  81. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/data_utils.py +0 -0
  82. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/general_utils.py +0 -0
  83. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/model_recorder.py +0 -0
  84. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/template_manager.py +0 -0
  85. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit/utils/trainer_logger.py +0 -0
  86. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/SOURCES.txt +0 -0
  87. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/dependency_links.txt +0 -0
  88. {threewtoolkit-1.0.2 → threewtoolkit-1.0.3}/toolkit/ThreeWToolkit.egg-info/requires.txt +0 -0
  89. {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.2
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.2"
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
@@ -62,7 +62,7 @@ class TestPipeline:
62
62
  shuffle_train=True,
63
63
  )
64
64
  self.dataset_config = ParquetDatasetConfig(
65
- path="./data/raw",
65
+ path="./dataset",
66
66
  columns=["sig1", "sig2"],
67
67
  target_column="class",
68
68
  target_class=[0, 1],
@@ -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.2
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