DibsDataSourceCSV
Overview
This repository contains a set of utilities utils and a Python file named datasource_csv. The primary purpose
of datasource_csv is to provide functionality for handling Excel and CSV files, performing
calculations on data and returning objects as results. DataSourceCSVimplements the DataSource interface defined in
another module called dibs_computing_core.
File Structure
- utils/: This directory contains several Python files, each housing methods that are utilized
within
datasource_csv. - datasource_csv.py: This Python file implements the
DataSourceinterface, defined indibs_computing_core, to interact with Excel and CSV files, converting them into appropriate objects (performing calculations on data and returning objects as results.)
Arguments:
path: Path to the file containing building data type ofstr. (Required)profile_from_norm: type ofstr. (Optional)gains_from_group_values: type ofstr. (Optional)usage_from_norm: type ofstr. (Optional)weather_period: type ofstr. (Optional)
Usage
To use the functionalities provided by this repository, follow these steps:
-
Installation: Use pip to install the module. This will automatically install the required dependencies mentioned in
pyproject.toml.pip install dibs_datasource_csv
-
Importing DatasourceCSV: You can import and use the
DataSourceCSVclass directly from the terminal or any Python environment.python
from dibs_computing_core.iso_simulator.dibs.dibs import DIBS from dibs_datasource_csv.datasource_csv import DataSourceCSV import dibs_data
-
Performing Simulation: Use the methods provided in
dibs class(calculate_result_of_one_buildingormulti) to perform calculations on your data. The methodcalculate_result_of_one_buildingsimulates one building andmultisimulates multiple building simultaneously for more performance.# Example usage datasource_csv = DataSourceCSV(path="path_to_your_data", "din18599", "mid", "sia2024", "2007-2021") or datasource_csv = DataSourceCSV(path="path_to_your_data", profile_from_norm="din18599", gains_from_group_values="mid", usage_from_norm="sia2024", weather_period="2007-2021") dibs = DIBS(datasource_csv) simulation_time, result_of_all_hours, summary_result = dibs.calculate_result_of_one_building() # To see the hourly result of the simulated building print(result_of_all_hours) # To see the summary result of the simulated building print(summary_result)
Contributing
Contributions to this repository are welcome. If you find any bugs, have feature requests, or want to contribute enhancements, feel free to open an issue or submit a pull request.
License
This repository is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of this license.
Acknowledgments
Special thanks to contributors and maintainers who have helped shape and improve this repository. Your efforts are greatly appreciated.
Metadata
Release files for dibs-datasource-csv 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dibs_datasource_csv-1.0.1.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dibs_datasource_csv-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.9 kB
Release files / dibs_datasource_csv-1.0.1.tar.gz
| Download URL | dibs_datasource_csv-1.0.1.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c62e2a609b4eae971c65bec051afae6b95c9a01187cc1265275c00fd2016fa57
|
|
BLAKE2b-256 checksum How to use checksums |
ad0348bc2b55b4758e5a970559c7b4a7ca21add786be418fc90a4d9b60f2a684
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / dibs_datasource_csv-1.0.1-py3-none-any.whl
| Download URL | dibs_datasource_csv-1.0.1-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35b9e4d11885f3a7d218b247fcbd72c3d7177a78711983aba5864ce5b5c5d966
|
|
BLAKE2b-256 checksum How to use checksums |
c722904e7c194bd852112076550f9bbd98da60ee80445a2ffbb692a8bd2eee14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|