{"id":14996096,"url":"https://github.com/alejoduarte23/reading_data_from_dewesoft","last_synced_at":"2026-01-07T12:04:48.616Z","repository":{"id":248770337,"uuid":"829557384","full_name":"AlejoDuarte23/Reading_data_from_Dewesoft","owner":"AlejoDuarte23","description":"The following repository retrieves sensor data (acceleration and strains) from both local and cloud databases. It processes the data using classes from another repository called Modal Engine for spectral analysis, modal analysis, and signal processing.","archived":false,"fork":false,"pushed_at":"2024-07-31T05:28:12.000Z","size":507,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T05:42:46.879Z","etag":null,"topics":["dewesoft","matplotlib","modal-analysis","numpy","orm","scipy","signal-processing","sql","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlejoDuarte23.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T17:10:22.000Z","updated_at":"2024-07-31T05:29:54.000Z","dependencies_parsed_at":"2024-09-15T15:20:57.604Z","dependency_job_id":null,"html_url":"https://github.com/AlejoDuarte23/Reading_data_from_Dewesoft","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":"0.36363636363636365","last_synced_commit":"56ca25a356457f640a0685ec6476a4f462bb81e7"},"previous_names":["alejoduarte23/reading_data_from_dewesoft"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FReading_data_from_Dewesoft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FReading_data_from_Dewesoft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FReading_data_from_Dewesoft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FReading_data_from_Dewesoft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlejoDuarte23","download_url":"https://codeload.github.com/AlejoDuarte23/Reading_data_from_Dewesoft/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978230,"owners_count":20703677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dewesoft","matplotlib","modal-analysis","numpy","orm","scipy","signal-processing","sql","sqlalchemy"],"created_at":"2024-09-24T16:32:24.916Z","updated_at":"2026-01-07T12:04:48.570Z","avatar_url":"https://github.com/AlejoDuarte23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README:\nThe following repository fetches data from both local and cloud databases to fetch data from sensors (acceleration and strains) and processes the data using the classes from another repository called Modal Engine for spectral analysis, modal analysis, and signal processing.\n\n## Request data from data base \n\n```python\nfrom config import database_uri_local, connection_string, table_name\nfrom orm_model import get_measurements_between_dates, Base, create_engine, sessionmaker , measurements_to_numpy ,create_measurement_class,get_latest_measurements\n\nsession = create_session(connection_string)\nstart_date = datetime(2024, 7, 27, 20, 25, 0, 0)\nend_date = datetime(2024, 7, 27, 22, 25, 0, 0)\nMeasurement = create_measurement_class(table_name)\nmeasurements = get_measurements_between_dates(start_date, end_date, session, Measurement)\n\ndata_array  = measurements_to_numpy(measurements) #Ndarray\n```\n\n## Process data: Plot spectrogram\n\n```python\nfrom Modal_Engine._engine import (SingleMeasurement,\n                                  FFTDomain,\n                                  DataVisualizer)\n\n\ndef plt_spectrogram(measurement: SingleMeasurement):\n    fdomain = FFTDomain(measurement,NFFT=2**6)\n    fdomain.fft()\n    data_vis1 = DataVisualizer(fdomain)\n    data_vis1.plot_spectrogram(cmap='jet')\n\nfile_name = \"data/measurements_2024_7_27:20:25_2h.pkl\"\ndata_set_time = \"2024/7/27:20:25\"\ndata_array = load_pickle(file_name)\nfilter = [0, 2, 4]\nmeasurement_1 = SingleMeasurement(name =  f\"{data_set_time} - Axis: X\", fs = 100,file_path= None,\n                                    description=\"2h test\")\nmeasurement_1 = measurement_1.set_data(data_array[:,filter]).resample(30)\nplt_spectrogram(measurement_1)\n```\n\n# Result\n\n![Spectrogram](data/spectrogram.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejoduarte23%2Freading_data_from_dewesoft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falejoduarte23%2Freading_data_from_dewesoft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejoduarte23%2Freading_data_from_dewesoft/lists"}