-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/bdc skeleton #42
Conversation
Added Branching Strategy in README.md
Signed-off-by: Felix Zailskas <[email protected]>
One of the deliverables for Sprint 1 is the planning document in PDF Format.
Feature/team logo
Signed-off-by: Felix Zailskas <[email protected]>
…t-01 Upload planning document PDF
…alifier into feature/documentation-setup
Signed-off-by: Felix Zailskas <[email protected]>
Added technology and Repository tools. Issue: #3.
…ecture Add documentation regarding the software architecture
Signed-off-by: Felix Zailskas <[email protected]>
Fixing the licensing issues created by PRs
added impediments screenshot
Signed-off-by: Ahmed Sheta <[email protected]>
Signed-off-by: Ahmed Sheta <[email protected]>
…mentation added the documentation for pull requests in file Contribution.md
Fix the logo so that only the correct version (dark / light) gets displayed.
Overview over possible features we want to add to our Base Data Collector (BDC)
The dynamic media source was still not working, but now it should
--------- Signed-off-by: Lucca Baumgärtner <[email protected]>
Fix duplicate logo in README
…lifier into feature/bdc-skeleton
Signed-off-by: Lucca Baumgärtner <[email protected]>
…re/bdc-skeleton # Conflicts: # BDC/data/collected_data.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall! Just a few minor adjustments.
BDC/src/data_collector.py
Outdated
# SPDX-License-Identifier: MIT | ||
# SPDX-FileCopyrightText: 2023 Ruchita Nathani <[email protected]> | ||
import csv | ||
import requests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add requests
package to the dependencies in Pipfile
. You can do so by running pipenv install requests
in bash.
BDC/src/data_collector.py
Outdated
def get_data_from_csv(): | ||
"""Retrieve information from the CSV file and utilize it in the Google API""" | ||
data = [] | ||
with open('../data/given_data.csv', 'r', encoding='utf8') as file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This relative path will result in a FileNotFoundError if it's run from anywhere else than inside /BDC/src/
. I suggest using absolute paths:
with open('../data/given_data.csv', 'r', encoding='utf8') as file: | |
file_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), '../data/given_data.csv') | |
with open(file_path, 'r', encoding='utf8') as file: |
BDC/src/data_collector.py
Outdated
if response.status_code == 200: | ||
data = response.json() | ||
|
||
with open("../data/collected_data.json", "w") as json_file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
with open("../data/collected_data.json", "w") as json_file: | |
file_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), '../data/collected_data.json') | |
with open(file_path, "w") as json_file: |
Signed-off-by: Lucca Baumgärtner <[email protected]>
6e5151a
to
635c7dd
Compare
635c7dd
to
a92a7d3
Compare
I have created a basic structure for the BDC feature. This structure comprises the following components: