fablabbcn / smartcitizen-data Goto Github PK
View Code? Open in Web Editor NEWA python package for analyzing environmental sensor's data
Home Page: https://docs.smartcitizen.me/Data/Data%20Analysis/
License: GNU General Public License v3.0
A python package for analyzing environmental sensor's data
Home Page: https://docs.smartcitizen.me/Data/Data%20Analysis/
License: GNU General Public License v3.0
This is to implement spec sensors on the scdata repository
If there is an issue while loading any device from a test, no cache is stored and you can never make progress in big tests downloads, specially critical for people that may get throttled.
TypeError Traceback (most recent call last)
Cell In[11], [line 7](vscode-notebook-cell:?execution_count=11&line=7)
[1](vscode-notebook-cell:?execution_count=11&line=1) traces = {
[2](vscode-notebook-cell:?execution_count=11&line=2) "1": {"devices": "all",
[3](vscode-notebook-cell:?execution_count=11&line=3) "channel": "BATT",
[4](vscode-notebook-cell:?execution_count=11&line=4) "subplot": 1}
[5](vscode-notebook-cell:?execution_count=11&line=5) }
----> [7](vscode-notebook-cell:?execution_count=11&line=7) test.ts_uplot(traces = traces,
[8](vscode-notebook-cell:?execution_count=11&line=8) formatting = {'width':1000,
[9](vscode-notebook-cell:?execution_count=11&line=9) 'title': 'Battery discharge test',
[10](vscode-notebook-cell:?execution_count=11&line=10) 'ylabel': {1: 'Battery level (%)'}
[11](vscode-notebook-cell:?execution_count=11&line=11) },
[12](vscode-notebook-cell:?execution_count=11&line=12) options = {'frequency': '1Min'})
File ...Programs\Python\Python311\Lib\site-packages\scdata\test\plot\ts_uplot.py:115, in ts_uplot(self, **kwargs)
[113](file:Programs/Python/Python311/Lib/site-packages/scdata/test/plot/ts_uplot.py:113) # Get data in uplot expected format
[114](file:Programs/Python/Python311/Lib/site-packages/scdata/test/plot/ts_uplot.py:114) udf = df.copy()
--> [115](file:Programs/Python/Python311/Lib/site-packages/scdata/test/plot/ts_uplot.py:115) udf.index = udf.index.astype(int)/10**9
[117](file:Programs/Python/Python311/Lib/site-packages/scdata/test/plot/ts_uplot.py:117) for isbplt in range(n_subplots):
[119](file:Programs/Python/Python311/Lib/site-packages/scdata/test/plot/ts_uplot.py:119) sdf = udf.loc[:, subplots[isbplt]]
File...Programs\Python\Python311\Lib\site-packages\pandas\core\indexes\base.py:1087, in Index.astype(self, dtype, copy)
[1085](file:Programs/Python/Python311/Lib/site-packages/pandas/core/indexes/base.py:1085) if isinstance(values, ExtensionArray):
[1086](file:Programs/Python/Python311/Lib/site-packages/pandas/core/indexes/base.py:1086) with rewrite_exception(type(values).__name__, type(self).__name__):
...
[485](file:Programs/Python/Python311/Lib/site-packages/pandas/core/arrays/datetimelike.py:485) )
[487](file:Programs/Python/Python311/Lib/site-packages/pandas/core/arrays/datetimelike.py:487) if copy:
[488](file:Programs/Python/Python311/Lib/site-packages/pandas/core/arrays/datetimelike.py:488) values = values.copy()
TypeError: Converting from datetime64[ns, Europe/Madrid] to int32 is not supported. Do obj.astype('int64').astype(dtype) instead
When attempting to import src/data/api (for example), I get the following error. Is there a place to find the missing code?
ModuleNotFoundError
Traceback (most recent call last)
<ipython-input-1-37165e7e045a> in <module>
----> 1 from src.data import api
~\Desktop\projects\smartcitizen-iscape-data\src\data\api.py in <module>
1 import requests
2 from tzwhere import tzwhere
----> 3 from src.saf import *
4
5 API_BASE_URL='https://api.smartcitizen.me/v0/devices/'
~\Desktop\projects\smartcitizen-iscape-data\src\saf.py in <module>
15
16 import joblib
---> 17 from src.secrets import *
18 from src.models.formulas import *
19
ModuleNotFoundError: No module named 'src.secrets'
Hi,
just installed Anaconda on W64-bit system (https://repo.anaconda.com/archive/Anaconda3-2019.07-Windows-x86_64.exe)
conda env create -f environment.yml
failes due to
ResolvePackageNotFound:
- xgboost=0.90
- tzwhere=3.0
Installation of both packages seems not possible as there is a conflict between the dependencies of the files. xgboost is not available for W64, only py-xgboost.
Currently, we are facing issues with opening the Environment files, and we need to provide access to the Token for Users
The framework makes use of a data
directory to hold calibration, blueprints and local data sources as raw and processed data, models and so on.
With the changes by @mcsage, for setup.py
, the data folder could not be used properly since:
So, should we include a step to make a ~/.scdata/data folder in which or another configurable directory in an .env file? @mcsage any proposal?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.