scdata 1.5.2__tar.gz → 1.5.4__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.
Files changed (98) hide show
  1. {scdata-1.5.2/scdata.egg-info → scdata-1.5.4}/PKG-INFO +3 -3
  2. {scdata-1.5.2 → scdata-1.5.4}/requirements.txt +2 -2
  3. {scdata-1.5.2 → scdata-1.5.4}/scdata/__init__.py +1 -1
  4. {scdata-1.5.2 → scdata-1.5.4}/scdata/_config/config.py +11 -2
  5. {scdata-1.5.2 → scdata-1.5.4/scdata.egg-info}/PKG-INFO +3 -3
  6. {scdata-1.5.2 → scdata-1.5.4}/scdata.egg-info/requires.txt +2 -2
  7. {scdata-1.5.2 → scdata-1.5.4}/setup.py +1 -1
  8. {scdata-1.5.2 → scdata-1.5.4}/LICENSE +0 -0
  9. {scdata-1.5.2 → scdata-1.5.4}/MANIFEST.in +0 -0
  10. {scdata-1.5.2 → scdata-1.5.4}/README.md +0 -0
  11. {scdata-1.5.2 → scdata-1.5.4}/scdata/_config/__init__.py +0 -0
  12. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/__init__.py +0 -0
  13. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/check/__init__.py +0 -0
  14. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/check/flats.py +0 -0
  15. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/check/gaps.py +0 -0
  16. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/check/implausible.py +0 -0
  17. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/check/outliers.py +0 -0
  18. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/device.py +0 -0
  19. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/plot/__init__.py +0 -0
  20. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/process/__init__.py +0 -0
  21. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/process/alphasense.py +0 -0
  22. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/process/error_codes.py +0 -0
  23. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/process/formulae.py +0 -0
  24. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/process/geoseries.py +0 -0
  25. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/process/params.py +0 -0
  26. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/process/regression.py +0 -0
  27. {scdata-1.5.2 → scdata-1.5.4}/scdata/device/process/timeseries.py +0 -0
  28. {scdata-1.5.2 → scdata-1.5.4}/scdata/io/__init__.py +0 -0
  29. {scdata-1.5.2 → scdata-1.5.4}/scdata/io/device_api.py +0 -0
  30. {scdata-1.5.2 → scdata-1.5.4}/scdata/io/device_file.py +0 -0
  31. {scdata-1.5.2 → scdata-1.5.4}/scdata/io/model.py +0 -0
  32. {scdata-1.5.2 → scdata-1.5.4}/scdata/models/__init__.py +0 -0
  33. {scdata-1.5.2 → scdata-1.5.4}/scdata/models/models.py +0 -0
  34. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/__init__.py +0 -0
  35. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/box_plot.py +0 -0
  36. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/heatmap_iplot.py +0 -0
  37. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/heatmap_plot.py +0 -0
  38. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/heatmap_uplot.py +0 -0
  39. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/maps.py +0 -0
  40. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/scatter_dispersion_grid.py +0 -0
  41. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/scatter_iplot.py +0 -0
  42. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/scatter_plot.py +0 -0
  43. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/target_diagram.py +0 -0
  44. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/templates/map_legend.html +0 -0
  45. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/tools.py +0 -0
  46. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_dendrogram.py +0 -0
  47. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_dispersion_grid.py +0 -0
  48. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_dispersion_plot.py +0 -0
  49. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_dispersion_uplot.py +0 -0
  50. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_iplot.py +0 -0
  51. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_panel.py +0 -0
  52. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_plot.py +0 -0
  53. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_scatter.py +0 -0
  54. {scdata-1.5.2 → scdata-1.5.4}/scdata/plot/ts_uplot.py +0 -0
  55. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/__init__.py +0 -0
  56. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/checks/__init__.py +0 -0
  57. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/checks/checks.py +0 -0
  58. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/dispersion/__init__.py +0 -0
  59. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/dispersion/dispersion.py +0 -0
  60. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/export/__init__.py +0 -0
  61. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/export/templates/delivery_template.html +0 -0
  62. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/export/templates/sc_template.html +0 -0
  63. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/export/to_file.py +0 -0
  64. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/test.py +0 -0
  65. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/tools/__init__.py +0 -0
  66. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/tools/combine.py +0 -0
  67. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/tools/history.py +0 -0
  68. {scdata-1.5.2 → scdata-1.5.4}/scdata/test/tools/prepare.py +0 -0
  69. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/__init__.py +0 -0
  70. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/cleaning.py +0 -0
  71. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/custom_logger.py +0 -0
  72. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/date.py +0 -0
  73. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/dictmerge.py +0 -0
  74. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/find.py +0 -0
  75. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/gets.py +0 -0
  76. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/interim/example.csv +0 -0
  77. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/interim/geodata.csv +0 -0
  78. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/lazy.py +0 -0
  79. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/location.py +0 -0
  80. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/merging.py +0 -0
  81. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/report.py +0 -0
  82. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/series.py +0 -0
  83. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/stats.py +0 -0
  84. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/tree.py +0 -0
  85. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/units.py +0 -0
  86. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/uploads/example_upload_1.json +0 -0
  87. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/uploads/example_zenodo_upload.yaml +0 -0
  88. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/uploads/report.pdf +0 -0
  89. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/url_check.py +0 -0
  90. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/zenodo.py +0 -0
  91. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/zenodo_templates/README.md +0 -0
  92. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/zenodo_templates/template_zenodo_dataset.json +0 -0
  93. {scdata-1.5.2 → scdata-1.5.4}/scdata/tools/zenodo_templates/template_zenodo_publication.json +0 -0
  94. {scdata-1.5.2 → scdata-1.5.4}/scdata.egg-info/SOURCES.txt +0 -0
  95. {scdata-1.5.2 → scdata-1.5.4}/scdata.egg-info/dependency_links.txt +0 -0
  96. {scdata-1.5.2 → scdata-1.5.4}/scdata.egg-info/not-zip-safe +0 -0
  97. {scdata-1.5.2 → scdata-1.5.4}/scdata.egg-info/top_level.txt +0 -0
  98. {scdata-1.5.2 → scdata-1.5.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scdata
3
- Version: 1.5.2
3
+ Version: 1.5.4
4
4
  Summary: Analysis of sensors and time series data
5
5
  Home-page: https://github.com/fablabbcn/smartcitizen-data
6
6
  Author: oscgonfer
@@ -28,8 +28,8 @@ Requires-Dist: requests
28
28
  Requires-Dist: scipy
29
29
  Requires-Dist: scikit-learn
30
30
  Requires-Dist: seaborn
31
- Requires-Dist: smartcitizen-connector>=1.5.1
32
- Requires-Dist: timezonefinder~=6.1.9
31
+ Requires-Dist: smartcitizen-connector>=1.5.2
32
+ Requires-Dist: timezonefinder<10,>=6.5
33
33
  Provides-Extra: plotting
34
34
  Requires-Dist: bokeh; extra == "plotting"
35
35
  Requires-Dist: panel; extra == "plotting"
@@ -8,5 +8,5 @@ requests
8
8
  scipy
9
9
  scikit-learn
10
10
  seaborn
11
- smartcitizen-connector>=1.5.1
12
- timezonefinder~=6.1.9
11
+ smartcitizen-connector>=1.5.2
12
+ timezonefinder>=6.5,<10
@@ -3,4 +3,4 @@ from .device import Device
3
3
  from .test import Test
4
4
  from .models import Source, TestOptions, DeviceOptions, APIParams, FileParams, CSVParams
5
5
 
6
- __version__ = '1.5.2'
6
+ __version__ = '1.5.4'
@@ -76,7 +76,11 @@ class Config(object):
76
76
  ### -------------SMART CITIZEN-------------
77
77
  ### ---------------------------------------
78
78
  # # Urls
79
- _base_postprocessing_url = 'https://raw.githubusercontent.com/fablabbcn/smartcitizen-data/master/'
79
+ # Blueprints and calibrations are read from BASE_POSTPROCESSING_URL, the same variable as
80
+ # smartcitizen-connector (e.g. flows: https://flows.smartcitizen.me/api/v1/). By default,
81
+ # the smartcitizen-data repository. These urls are not saved in config.yaml
82
+ _base_postprocessing_url = environ.get('BASE_POSTPROCESSING_URL',
83
+ 'https://raw.githubusercontent.com/fablabbcn/smartcitizen-data/master/').rstrip('/') + '/'
80
84
  _default_file_type = 'json'
81
85
 
82
86
  calibrations_urls = [
@@ -107,6 +111,9 @@ class Config(object):
107
111
  # f'{_base_postprocessing_url}connectors/nilu.{_default_file_type}'
108
112
  # ]
109
113
 
114
+ # Not saved in config.yaml, derived from _base_postprocessing_url
115
+ _derived_settings = ['blueprints_urls', 'calibrations_urls', 'names_urls']
116
+
110
117
  names_urls = [
111
118
  # Revert to base postprocessing url
112
119
  # f'{_base_postprocessing_url}names/SCDevice.json'
@@ -743,6 +750,8 @@ class Config(object):
743
750
  saved_config = yaml.load(cf, Loader = yaml.SafeLoader)
744
751
 
745
752
  for k, v in saved_config.items():
753
+ # Urls come from BASE_POSTPROCESSING_URL: ignore those saved by older versions
754
+ if k in self._derived_settings: continue
746
755
 
747
756
  try:
748
757
  self.__setattr__(k, v)
@@ -757,7 +766,7 @@ class Config(object):
757
766
  """ Save current config to file. """
758
767
  c = dict()
759
768
  for setting in self:
760
- if not setting.startswith('_') and not callable(self.__getitem__(setting)) and setting not in ['blueprints', 'names', 'calibrations']:
769
+ if not setting.startswith('_') and not callable(self.__getitem__(setting)) and setting not in ['blueprints', 'names', 'calibrations'] + self._derived_settings:
761
770
  c[setting] = self[setting]
762
771
 
763
772
  _sccpath = join(self.paths['config'], 'config.yaml')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scdata
3
- Version: 1.5.2
3
+ Version: 1.5.4
4
4
  Summary: Analysis of sensors and time series data
5
5
  Home-page: https://github.com/fablabbcn/smartcitizen-data
6
6
  Author: oscgonfer
@@ -28,8 +28,8 @@ Requires-Dist: requests
28
28
  Requires-Dist: scipy
29
29
  Requires-Dist: scikit-learn
30
30
  Requires-Dist: seaborn
31
- Requires-Dist: smartcitizen-connector>=1.5.1
32
- Requires-Dist: timezonefinder~=6.1.9
31
+ Requires-Dist: smartcitizen-connector>=1.5.2
32
+ Requires-Dist: timezonefinder<10,>=6.5
33
33
  Provides-Extra: plotting
34
34
  Requires-Dist: bokeh; extra == "plotting"
35
35
  Requires-Dist: panel; extra == "plotting"
@@ -8,8 +8,8 @@ requests
8
8
  scipy
9
9
  scikit-learn
10
10
  seaborn
11
- smartcitizen-connector>=1.5.1
12
- timezonefinder~=6.1.9
11
+ smartcitizen-connector>=1.5.2
12
+ timezonefinder<10,>=6.5
13
13
 
14
14
  [dev]
15
15
  pytest
@@ -19,7 +19,7 @@ REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
19
19
 
20
20
  setup(
21
21
  name='scdata',
22
- version='1.5.2',
22
+ version='1.5.4',
23
23
  description='Analysis of sensors and time series data',
24
24
  author='oscgonfer',
25
25
  license='GNU-GPL3.0',
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
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