sarapy 1.1.0__tar.gz → 1.1.1__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.
- {sarapy-1.1.0/sarapy.egg-info → sarapy-1.1.1}/PKG-INFO +5 -1
- {sarapy-1.1.0 → sarapy-1.1.1}/README.md +4 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/pyproject.toml +1 -1
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/dataProcessing/TimeSeriesProcessor.py +8 -10
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/mlProcessors/PlantinFMCreator.py +6 -11
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/version.py +1 -1
- {sarapy-1.1.0 → sarapy-1.1.1/sarapy.egg-info}/PKG-INFO +5 -1
- {sarapy-1.1.0 → sarapy-1.1.1}/LICENCE +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/__init__.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/dataProcessing/GeoProcessor.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/dataProcessing/OpsProcessor.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/dataProcessing/TLMSensorDataProcessor.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/dataProcessing/__init__.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/mlProcessors/PlantinClassifier.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/mlProcessors/__init__.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/preprocessing/DistancesImputer.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/preprocessing/FertilizerImputer.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/preprocessing/TransformInputData.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/preprocessing/TransformToOutputData.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/preprocessing/__init__.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/utils/__init__.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/utils/amg_decoder.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/utils/amg_ppk.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy/utils/getRawOperations.py +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy.egg-info/SOURCES.txt +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy.egg-info/dependency_links.txt +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy.egg-info/requires.txt +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/sarapy.egg-info/top_level.txt +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/setup.cfg +0 -0
- {sarapy-1.1.0 → sarapy-1.1.1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sarapy
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Home-page: https://github.com/lucasbaldezzari/sarapy
|
|
5
5
|
Author: Lucas Baldezzari
|
|
6
6
|
Author-email: Lucas Baldezzari <lmbaldezzari@gmail.com>
|
|
@@ -19,6 +19,10 @@ Requires-Dist: geopy
|
|
|
19
19
|
|
|
20
20
|
Library for processing SARAPICO project metadata of _AMG_.
|
|
21
21
|
|
|
22
|
+
#### Version 1.1.1
|
|
23
|
+
|
|
24
|
+
- Se modifica TimeSeriesProcessor.compute_ratio_dCdP() dado que la versión de vectorize al parecer no funcionaba correctamente en ciertos casos.
|
|
25
|
+
|
|
22
26
|
#### Version 1.1.0
|
|
23
27
|
|
|
24
28
|
Versión 1.1 estable para trabajarse en servidor.
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Library for processing SARAPICO project metadata of _AMG_.
|
|
4
4
|
|
|
5
|
+
#### Version 1.1.1
|
|
6
|
+
|
|
7
|
+
- Se modifica TimeSeriesProcessor.compute_ratio_dCdP() dado que la versión de vectorize al parecer no funcionaba correctamente en ciertos casos.
|
|
8
|
+
|
|
5
9
|
#### Version 1.1.0
|
|
6
10
|
|
|
7
11
|
Versión 1.1 estable para trabajarse en servidor.
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import numpy as np
|
|
4
4
|
from sklearn.base import BaseEstimator, TransformerMixin
|
|
5
|
-
import warnings
|
|
6
5
|
|
|
7
6
|
class TimeSeriesProcessor(BaseEstimator, TransformerMixin):
|
|
8
7
|
""""
|
|
@@ -36,7 +35,7 @@ class TimeSeriesProcessor(BaseEstimator, TransformerMixin):
|
|
|
36
35
|
self._deltaO = np.diff(X[:,0])
|
|
37
36
|
self._deltaP = X[:,1]
|
|
38
37
|
self._deltaC = self._deltaO - self._deltaP[1:]
|
|
39
|
-
##agregamos un 0 al principio de deltaO y deltaC
|
|
38
|
+
##agregamos un 0 al principio de deltaO y deltaC
|
|
40
39
|
self._deltaO = np.insert(self._deltaO, 0, 0)
|
|
41
40
|
self._deltaC = np.insert(self._deltaC, 0, 0)
|
|
42
41
|
##computamos el ratio entre deltaC y deltaP. Usamos np.vectorize para que compute el ratio para cada elemento del array
|
|
@@ -44,10 +43,6 @@ class TimeSeriesProcessor(BaseEstimator, TransformerMixin):
|
|
|
44
43
|
##cambiamos primer valor de ratio_dCdP por 1
|
|
45
44
|
self._ratio_dCdP[0] = 1
|
|
46
45
|
|
|
47
|
-
##versión 0.2.5
|
|
48
|
-
# self._deltaO = np.hstack((self._deltaO, 0))
|
|
49
|
-
# self._deltaC = np.hstack((self._deltaC, 0))
|
|
50
|
-
|
|
51
46
|
elif X.shape[0] == 1:
|
|
52
47
|
self._deltaO = np.array([0])
|
|
53
48
|
self._deltaC = np.array([0])
|
|
@@ -73,12 +68,15 @@ class TimeSeriesProcessor(BaseEstimator, TransformerMixin):
|
|
|
73
68
|
def fit_transform(self, X: np.array, y=None):
|
|
74
69
|
self.fit(X)
|
|
75
70
|
return self.transform(X)
|
|
76
|
-
|
|
71
|
+
|
|
77
72
|
def compute_ratio_dCdP(self, deltaC, deltaP):
|
|
78
73
|
"""Devuelve el ratio entre el tiempo de caminata y el tiempo de pico abierto."""
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
|
|
75
|
+
numerator = deltaC - deltaP
|
|
76
|
+
denominator = deltaC + deltaP
|
|
77
|
+
##reemplazo valores 0 del denominador por 1
|
|
78
|
+
denominator[denominator == 0] = 1
|
|
79
|
+
return numerator/denominator
|
|
82
80
|
|
|
83
81
|
@property
|
|
84
82
|
def deltaO(self):
|
|
@@ -4,7 +4,6 @@ import warnings
|
|
|
4
4
|
import numpy as np
|
|
5
5
|
from sklearn.base import BaseEstimator, TransformerMixin
|
|
6
6
|
from sarapy.dataProcessing import TLMSensorDataProcessor, TimeSeriesProcessor, GeoProcessor
|
|
7
|
-
from sarapy.preprocessing import DistancesImputer
|
|
8
7
|
|
|
9
8
|
class PlantinFMCreator(BaseEstimator, TransformerMixin):
|
|
10
9
|
"""La clase FMCreator se encarga de crear la Feature Matrix (FM) a partir de los datos de telemetría. Se utilizan las clases TLMSensorDataExtractor, TimeSeriesProcessor y GeoProcessor para realizar las transformaciones necesarias.
|
|
@@ -69,11 +68,9 @@ class PlantinFMCreator(BaseEstimator, TransformerMixin):
|
|
|
69
68
|
- 4: precision del GPS
|
|
70
69
|
|
|
71
70
|
Returns:
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
- 2: ratio_dCdP: Ratio entre el delta de caminata y delta de pico abierto
|
|
76
|
-
- 3: distances: Distancias entre operaciones
|
|
71
|
+
- 0: feature_matrix: (deltaO, ratio_dCdP, distances)
|
|
72
|
+
- 1: dst_pt
|
|
73
|
+
- 2: inest_pt
|
|
77
74
|
"""
|
|
78
75
|
|
|
79
76
|
if not self.is_fitted:
|
|
@@ -129,11 +126,9 @@ class PlantinFMCreator(BaseEstimator, TransformerMixin):
|
|
|
129
126
|
- 4: precision del GPS
|
|
130
127
|
|
|
131
128
|
Returns:
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
- 2: ratio_dCdP: Ratio entre el delta de caminata y delta de pico abierto
|
|
136
|
-
- 3: distances: Distancias entre operaciones
|
|
129
|
+
- 0: feature_matrix: (deltaO, ratio_dCdP, distances)
|
|
130
|
+
- 1: dst_pt
|
|
131
|
+
- 2: inest_pt
|
|
137
132
|
"""
|
|
138
133
|
self.fit(X)
|
|
139
134
|
return self.transform(X)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
## Version of the package
|
|
2
|
-
__version__ = "1.1.
|
|
2
|
+
__version__ = "1.1.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sarapy
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Home-page: https://github.com/lucasbaldezzari/sarapy
|
|
5
5
|
Author: Lucas Baldezzari
|
|
6
6
|
Author-email: Lucas Baldezzari <lmbaldezzari@gmail.com>
|
|
@@ -19,6 +19,10 @@ Requires-Dist: geopy
|
|
|
19
19
|
|
|
20
20
|
Library for processing SARAPICO project metadata of _AMG_.
|
|
21
21
|
|
|
22
|
+
#### Version 1.1.1
|
|
23
|
+
|
|
24
|
+
- Se modifica TimeSeriesProcessor.compute_ratio_dCdP() dado que la versión de vectorize al parecer no funcionaba correctamente en ciertos casos.
|
|
25
|
+
|
|
22
26
|
#### Version 1.1.0
|
|
23
27
|
|
|
24
28
|
Versión 1.1 estable para trabajarse en servidor.
|
|
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
|
|
File without changes
|
|
File without changes
|