Skip to content

Commit 53d89e9

Browse files
committed
Recalculating ICA parts
1 parent 9785edf commit 53d89e9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plugins/gbif/gbif_data.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ def ICA(filepath):
269269

270270
# Calcula el ICA utilizando una combinación ponderada de los porcentajes de calidad
271271
percentajes_ica["ICA"] = (
272-
0.45 * percentajes_ica["Taxonomic"]
273-
+ 0.35 * percentajes_ica["Geographic"]
274-
+ 0.2 * percentajes_ica["Temporal"]
272+
percentajes_ica["Taxonomic"]
273+
+ percentajes_ica["Geographic"]
274+
+ percentajes_ica["Temporal"]
275275
)
276276

277277
return percentajes_ica
@@ -360,7 +360,7 @@ def taxonomic_percentajes(df):
360360
+ 0.1 * percentaje_species
361361
+ 0.09 * percentaje_hierarchy
362362
+ 0.06 * percentaje_identifiers
363-
) / 0.45
363+
)
364364

365365
return {
366366
"Taxonomic": percentaje_taxonomic,
@@ -466,7 +466,7 @@ def geographic_percentajes(df):
466466
percentaje_geographic += 0.1 * percentaje_countries
467467
percentaje_geographic += 0.05 * percentaje_coordinates_uncertainty
468468
percentaje_geographic -= 0.2 * percentaje_incorrect_coordinates
469-
percentaje_geographic = percentaje_geographic / 0.35
469+
percentaje_geographic = percentaje_geographic
470470
except Exception as e:
471471
logging.error(e)
472472
return {
@@ -520,7 +520,7 @@ def safe_date(date):
520520
dates = df[df.eventDate.notnull()].copy()
521521
if dates.empty:
522522
return {
523-
"Temporal": -15 / 0.2,
523+
"Temporal": -15 * 0.2,
524524
"Years": 0,
525525
"Months": 0,
526526
"Days": 0,
@@ -576,7 +576,7 @@ def safe_date(date):
576576
+ 0.07 * percentaje_months
577577
+ 0.02 * percentaje_days
578578
- 0.15 * percentaje_incorrect_dates
579-
) / 0.2
579+
)
580580

581581
return {
582582
"Temporal": percentaje_temporal,

0 commit comments

Comments
 (0)