sarapy 1.1.3__py3-none-any.whl → 1.1.5__py3-none-any.whl
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/dataProcessing/OpsProcessor.py +26 -7
- sarapy/mlProcessors/PlantinFMCreator.py +5 -2
- sarapy/version.py +1 -1
- {sarapy-1.1.3.dist-info → sarapy-1.1.5.dist-info}/METADATA +10 -2
- {sarapy-1.1.3.dist-info → sarapy-1.1.5.dist-info}/RECORD +8 -8
- {sarapy-1.1.3.dist-info → sarapy-1.1.5.dist-info}/LICENCE +0 -0
- {sarapy-1.1.3.dist-info → sarapy-1.1.5.dist-info}/WHEEL +0 -0
- {sarapy-1.1.3.dist-info → sarapy-1.1.5.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
###Documentación en https://github.com/lucasbaldezzari/sarapy/blob/main/docs/Docs.md
|
|
2
|
-
import warnings
|
|
3
|
-
import datetime
|
|
4
|
-
from dateutil.tz import tzutc
|
|
5
2
|
import numpy as np
|
|
6
3
|
import pandas as pd
|
|
7
4
|
from sarapy.mlProcessors import PlantinFMCreator
|
|
@@ -193,6 +190,9 @@ class OpsProcessor():
|
|
|
193
190
|
##chequeo si first_day_op_classified es True, si es así, no se considera la primera fila de las classified_ops
|
|
194
191
|
if self.operationsDict[ID_NPDP]["first_day_op_classified"]:
|
|
195
192
|
classified_ops = classified_ops[1:]
|
|
193
|
+
|
|
194
|
+
##actualizo las operaciones que hayan sido hardcodeadas luego de despertar y/o reiniciar la electrónica
|
|
195
|
+
classified_ops = self.updateBedoreAwake(classified_ops)
|
|
196
196
|
|
|
197
197
|
# plantinClassifications = np.vstack((plantinClassifications, classified_ops)) if plantinClassifications is not None else classified_ops
|
|
198
198
|
plantinClassifications = np.concatenate((plantinClassifications, classified_ops)) if plantinClassifications is not None else classified_ops
|
|
@@ -282,12 +282,30 @@ class OpsProcessor():
|
|
|
282
282
|
|
|
283
283
|
for ID_NPDP in self.operationsDict.keys():
|
|
284
284
|
self._operationsDict[ID_NPDP]["sample_ops"] = None
|
|
285
|
+
|
|
286
|
+
def updateBedoreAwake(self, classified_ops):
|
|
287
|
+
"""
|
|
288
|
+
Función para actualizar las operaciones que hayan sido hardcodeadas luego de despertar y/o reiniciar la electrónica.
|
|
289
|
+
|
|
290
|
+
Se chequea la bandera MODE de los datos de telemetría entregados por la electrónica.
|
|
291
|
+
|
|
292
|
+
Args:
|
|
293
|
+
- classified_ops: np.array con las operaciones clasificadas.
|
|
294
|
+
|
|
295
|
+
Returns:
|
|
296
|
+
- classified_ops: np.array con las operaciones clasificadas.
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
##me quedo con los índices donde MODEFlag es igual a 1
|
|
300
|
+
mask = self.plantinFMCreator.tlmExtracted[:,self.plantinFMCreator.tlmdeDP["MODEFlag"]]==1
|
|
301
|
+
classified_ops[mask] = 0 ##hardcodeo las operaciones que hayan sido clasificadas como 1
|
|
302
|
+
return classified_ops
|
|
285
303
|
|
|
286
304
|
@property
|
|
287
305
|
def operationsDict(self):
|
|
288
306
|
return self._operationsDict
|
|
289
307
|
|
|
290
|
-
|
|
308
|
+
|
|
291
309
|
if __name__ == "__main__":
|
|
292
310
|
#cargo archivo examples\volcado_17112023_NODE_processed.csv
|
|
293
311
|
import pandas as pd
|
|
@@ -296,8 +314,8 @@ if __name__ == "__main__":
|
|
|
296
314
|
import sarapy.utils.getRawOperations as getRawOperations
|
|
297
315
|
from sarapy.dataProcessing import OpsProcessor
|
|
298
316
|
|
|
299
|
-
data_path = os.path.join(os.getcwd(), "examples\\2024-09-
|
|
300
|
-
historical_data_path = os.path.join(os.getcwd(), "examples\\2024-09-
|
|
317
|
+
data_path = os.path.join(os.getcwd(), "examples\\2024-09-16\\UPM001N\\data.json")
|
|
318
|
+
historical_data_path = os.path.join(os.getcwd(), "examples\\2024-09-16\\UPM001N\\historical-data.json")
|
|
301
319
|
|
|
302
320
|
raw_data = pd.read_json(data_path, orient="records").to_dict(orient="records")
|
|
303
321
|
raw_data2 = pd.read_json(historical_data_path, orient="records").to_dict(orient="records")
|
|
@@ -315,4 +333,5 @@ if __name__ == "__main__":
|
|
|
315
333
|
##
|
|
316
334
|
df = pd.DataFrame(classifications)
|
|
317
335
|
tag_seedling = df["tag_seedling"].values
|
|
318
|
-
print(tag_seedling.mean())
|
|
336
|
+
print(tag_seedling.mean())
|
|
337
|
+
print(df["tag_seedling"].shape)
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
###Documentación en https://github.com/lucasbaldezzari/sarapy/blob/main/docs/Docs.md
|
|
2
|
-
|
|
3
|
-
import warnings
|
|
4
2
|
import numpy as np
|
|
5
3
|
from sklearn.base import BaseEstimator, TransformerMixin
|
|
6
4
|
from sarapy.dataProcessing import TLMSensorDataProcessor, TimeSeriesProcessor, GeoProcessor
|
|
@@ -138,6 +136,11 @@ class PlantinFMCreator(BaseEstimator, TransformerMixin):
|
|
|
138
136
|
"""Devuelve los datos de telemetría extraídos."""
|
|
139
137
|
return self._tlmExtracted
|
|
140
138
|
|
|
139
|
+
@property
|
|
140
|
+
def tlmdeDP(self):
|
|
141
|
+
"""Devuelve el diccionario con la posición de los datos dentro del array devuelto por transform()."""
|
|
142
|
+
return self._tlmdeDP
|
|
143
|
+
|
|
141
144
|
@property
|
|
142
145
|
def timeDeltas(self):
|
|
143
146
|
"""Devuelve los datos de tiempo extraídos."""
|
sarapy/version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
## Version of the package
|
|
2
|
-
__version__ = "1.1.
|
|
2
|
+
__version__ = "1.1.5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sarapy
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.5
|
|
4
4
|
Home-page: https://github.com/lucasbaldezzari/sarapy
|
|
5
5
|
Author: Lucas Baldezzari
|
|
6
6
|
Author-email: Lucas Baldezzari <lmbaldezzari@gmail.com>
|
|
@@ -17,7 +17,15 @@ Requires-Dist: geopy
|
|
|
17
17
|
|
|
18
18
|
# SARAPY
|
|
19
19
|
|
|
20
|
-
Library for processing SARAPICO project metadata of
|
|
20
|
+
Library for processing SARAPICO project metadata of _AMG SA_.
|
|
21
|
+
|
|
22
|
+
#### Version 1.1.5
|
|
23
|
+
|
|
24
|
+
- Se quita print de función update.
|
|
25
|
+
|
|
26
|
+
#### Version 1.1.4
|
|
27
|
+
|
|
28
|
+
- Se implementa actualización de operaciones con bandera MODE en 1. Se hacen operaciones de plantin iguales a 0 para todas las operaciones con MODE = 1.
|
|
21
29
|
|
|
22
30
|
#### Version 1.1.3
|
|
23
31
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
sarapy/__init__.py,sha256=aVoywqGSscYYDycLaYJnz08dlQabl9gH0h4Q5KtHM9o,74
|
|
2
|
-
sarapy/version.py,sha256=
|
|
2
|
+
sarapy/version.py,sha256=fpIUJRMaOvr74IVvNAnR0CjRClgOOsjYZWCcuo-tQH8,51
|
|
3
3
|
sarapy/dataProcessing/GeoProcessor.py,sha256=ARjgKTXDVdf_cFCXyFmzlnmmmay3HG3q-yeJ9QrAcQU,5919
|
|
4
|
-
sarapy/dataProcessing/OpsProcessor.py,sha256
|
|
4
|
+
sarapy/dataProcessing/OpsProcessor.py,sha256=BjrJ58Lk1pQSqOCUvhFTXTo-cw12zZ5JJrW1VVbtfdQ,17365
|
|
5
5
|
sarapy/dataProcessing/TLMSensorDataProcessor.py,sha256=GfSIRYD_biFlOMTfSQSwW0HsUouZuUL3ScvL4uUHTPQ,23824
|
|
6
6
|
sarapy/dataProcessing/TimeSeriesProcessor.py,sha256=-uic18Sut9yMCenbLO1-VabmKifKABt_FbCCP_fLcmE,5403
|
|
7
7
|
sarapy/dataProcessing/__init__.py,sha256=Kqs5sFtq6RMEa3KLJFbsGRoYsIxHL1UUGMuplyCyQFk,200
|
|
8
8
|
sarapy/dataProcessing/amg_decoder.py,sha256=JZ7cbu7DlCuatuq2F7aBfUr7S7U-K5poBgxw5nY6rNI,4319
|
|
9
9
|
sarapy/mlProcessors/PlantinClassifier.py,sha256=ahoDIgxfKiq0sMm4dR1M4rLO-J6SxDMrASjlmswj3QI,6781
|
|
10
|
-
sarapy/mlProcessors/PlantinFMCreator.py,sha256=
|
|
10
|
+
sarapy/mlProcessors/PlantinFMCreator.py,sha256=FeEz0MiorkMPodPgN9FtBDJ22WVLoLwK4g-CFI46DAk,8568
|
|
11
11
|
sarapy/mlProcessors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
sarapy/preprocessing/DistancesImputer.py,sha256=NvbVAh5m0yFxVgDbEFnEX7RSG13qLjO7i2gqjDAWsf4,9106
|
|
13
13
|
sarapy/preprocessing/FertilizerImputer.py,sha256=zK6ONAilwPHvj-bC7yxnQYOkDBCCkWh6__57vYK9anM,1490
|
|
@@ -18,8 +18,8 @@ sarapy/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
18
18
|
sarapy/utils/amg_decoder.py,sha256=JZ7cbu7DlCuatuq2F7aBfUr7S7U-K5poBgxw5nY6rNI,4319
|
|
19
19
|
sarapy/utils/amg_ppk.py,sha256=c0GusnxdntU-E0JOezzbIfC7SWoJmKAbad_zYDCJ3-c,1060
|
|
20
20
|
sarapy/utils/getRawOperations.py,sha256=8aA1fIkNCnUYgiWfnFggRT_U35z432gZBrZ7seGO5w4,817
|
|
21
|
-
sarapy-1.1.
|
|
22
|
-
sarapy-1.1.
|
|
23
|
-
sarapy-1.1.
|
|
24
|
-
sarapy-1.1.
|
|
25
|
-
sarapy-1.1.
|
|
21
|
+
sarapy-1.1.5.dist-info/LICENCE,sha256=N00sU3vSQ6F5c2vML9_qP4IFTkCPFFj0YGDB2CZP-uQ,840
|
|
22
|
+
sarapy-1.1.5.dist-info/METADATA,sha256=WYQ7CXiHIz--kttqPzK3gGG6RnD1jl8idsH5tb98iUo,3234
|
|
23
|
+
sarapy-1.1.5.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
24
|
+
sarapy-1.1.5.dist-info/top_level.txt,sha256=4mUGZXfX2Fw47fpY6MQkaJeuOs_8tbjLkkNp34DJWiA,7
|
|
25
|
+
sarapy-1.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|