apmtools 0.2.2__tar.gz → 0.2.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.
- {apmtools-0.2.2 → apmtools-0.2.3}/PKG-INFO +1 -1
- {apmtools-0.2.2 → apmtools-0.2.3}/pyproject.toml +1 -1
- {apmtools-0.2.2 → apmtools-0.2.3}/src/apmtools/classes.py +4 -1
- {apmtools-0.2.2 → apmtools-0.2.3}/.gitignore +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/LICENSE +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/README.md +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/src/apmtools/__init__.py +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/src/apmtools/data_processing.py +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/src/apmtools/functions.py +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/src/apmtools/legacy.py +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/src/apmtools/shiny/__init__.py +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/src/apmtools/shiny/summary.py +0 -0
- {apmtools-0.2.2 → apmtools-0.2.3}/src/apmtools/units.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: apmtools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.003
|
|
4
4
|
Summary: A collection of tools for processing air pollution monitoring data
|
|
5
5
|
Project-URL: Homepage, https://github.com/federlorenz/apmtools
|
|
6
6
|
Author-email: Federico Lorenzetti <lorenzetti.federico@gmail.com>
|
|
@@ -476,7 +476,7 @@ class Dataset(DictionaryPlus):
|
|
|
476
476
|
self.scan_folder(directory=f"{directory}{j}/", levels=levels,
|
|
477
477
|
level=level+1, monitor=monitor, levels_dict=levels_dict, gmt_timezone_shift=gmt_timezone_shift, interpolate=interpolate, add_m=add_m)
|
|
478
478
|
|
|
479
|
-
def save_summary(self, save_csv=True, filename="./", columns={}):
|
|
479
|
+
def save_summary(self, save_csv=True, filename="./", columns={}, merged=True):
|
|
480
480
|
types_in = list(set(type(v) for v in self.values()))
|
|
481
481
|
|
|
482
482
|
def match_class(x):
|
|
@@ -699,8 +699,11 @@ class Dataset(DictionaryPlus):
|
|
|
699
699
|
with open(f"{z[0]+"_"+filename if filename != "./" else z[0]+".csv"}", "w", encoding="utf-8") as output:
|
|
700
700
|
z[1].to_csv(output, index=False)
|
|
701
701
|
out[z[0]] = z[1]
|
|
702
|
+
if merged:
|
|
703
|
+
return pd.concat([out[k] for k in out.keys()]).reset_index()
|
|
702
704
|
return out
|
|
703
705
|
|
|
706
|
+
|
|
704
707
|
def save_data(self, directory="./saved/", levels=[]):
|
|
705
708
|
def get_specific_level(v, j):
|
|
706
709
|
if hasattr(v, j):
|
|
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
|