ecopipeline 0.7.1__tar.gz → 0.7.2__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.
- {ecopipeline-0.7.1/src/ecopipeline.egg-info → ecopipeline-0.7.2}/PKG-INFO +1 -1
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/setup.cfg +1 -1
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/load/load.py +7 -2
- {ecopipeline-0.7.1 → ecopipeline-0.7.2/src/ecopipeline.egg-info}/PKG-INFO +1 -1
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/LICENSE +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/README.md +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/pyproject.toml +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/setup.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/__init__.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/extract/__init__.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/extract/extract.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/load/__init__.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/transform/__init__.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/transform/bayview.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/transform/lbnl.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/transform/transform.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/utils/ConfigManager.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/utils/__init__.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline/utils/unit_convert.py +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline.egg-info/requires.txt +0 -0
- {ecopipeline-0.7.1 → ecopipeline-0.7.2}/src/ecopipeline.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = ecopipeline
|
|
3
|
-
version = 0.7.
|
|
3
|
+
version = 0.7.2
|
|
4
4
|
authors = ["Carlos Bello, <bellocarlos@seattleu.edu>, Emil Fahrig <fahrigemil@seattleu.edu>, Casey Mang <cmang@seattleu.edu>, Julian Harris <harrisjulian@seattleu.edu>, Roger Tram <rtram@seattleu.edu>, Nolan Price <nolan@ecotope.com>"]
|
|
5
5
|
description = Contains functions for use in Ecotope Datapipelines
|
|
6
6
|
long_description = file: README.md
|
|
@@ -460,7 +460,7 @@ def report_data_loss(config : ConfigManager, site_name : str = None):
|
|
|
460
460
|
cursor.close()
|
|
461
461
|
return True
|
|
462
462
|
|
|
463
|
-
def load_data_statistics(config : ConfigManager, daily_stats_df : pd.DataFrame, config_daily_indicator : str = "day"):
|
|
463
|
+
def load_data_statistics(config : ConfigManager, daily_stats_df : pd.DataFrame, config_daily_indicator : str = "day", custom_table_name : str = None):
|
|
464
464
|
"""
|
|
465
465
|
Logs data statistics for the site in a table with name "{daily table name}_stats"
|
|
466
466
|
|
|
@@ -472,13 +472,18 @@ def load_data_statistics(config : ConfigManager, daily_stats_df : pd.DataFrame,
|
|
|
472
472
|
dataframe created by the create_data_statistics_df() function in ecopipeline.transform
|
|
473
473
|
config_daily_indicator : str
|
|
474
474
|
the indicator of the daily_table name in the config.ini file of the data pipeline
|
|
475
|
+
custom_table_name : str
|
|
476
|
+
custom table name for data statistics. Overwrites the name "{daily table name}_stats" to your custom name.
|
|
477
|
+
In this sense config_daily_indicator's pointer is no longer used.
|
|
475
478
|
|
|
476
479
|
Returns
|
|
477
480
|
-------
|
|
478
481
|
bool:
|
|
479
482
|
A boolean value indicating if the data was successfully written to the database.
|
|
480
483
|
"""
|
|
481
|
-
table_name =
|
|
484
|
+
table_name = custom_table_name
|
|
485
|
+
if table_name is None:
|
|
486
|
+
table_name = f"{config.get_table_name(config_daily_indicator)}_stats"
|
|
482
487
|
return load_overwrite_database(config, daily_stats_df, config.get_db_table_info([]), config_daily_indicator, table_name=table_name)
|
|
483
488
|
|
|
484
489
|
def _generate_mysql_update_event_table(row, id):
|
|
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
|