Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
squillero committed Jul 9, 2024
1 parent 77353ab commit 7a0433f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
Empty file modified Python/exams/armstrong/evaluation-grid.md
100755 → 100644
Empty file.
Empty file modified Python/exams/ascii-stats/evaluation-grid.md
100755 → 100644
Empty file.
Empty file modified Python/exams/connect-four/evaluation-grid.md
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion Python/exams/consumption+production/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Consumption and Production Analysis
# CONSUMPTION AND PRODUCTION ANALYSIS

An energy company has collected the energy consumption of a series of households by sampling data every 15 minutes. The company wants to estimate the energy benefit of installing photovoltaic systems in various households. For each household, the size of the installable photovoltaic system (in m2) and the system's efficiency are known. Additionally, the company has collected solar radiation data for the area of interest. The goal is to analyze these data to calculate self-consumption, self-sufficiency, self-consumed energy, produced energy, and energy fed into the grid for each household (and for the aggregate of households). To do this, various indicators need to be calculated and a statistics report generated.

Expand Down
9 changes: 6 additions & 3 deletions Python/exams/consumption+production/consumption+production.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@

def read_data(filename):
"""Read a CSV file and return an unrolled list of dictionaries."""
with open(filename, newline='') as csvfile:
reader = DictReader(csvfile, delimiter=';')
data = list(reader)
try:
with open(filename, newline='') as csvfile:
reader = DictReader(csvfile, delimiter=';')
data = list(reader)
except OSError as problem:
exit(f"{filename}: {problem}")
return data


Expand Down
Empty file modified Python/exams/worms/README.md
100755 → 100644
Empty file.

0 comments on commit 7a0433f

Please sign in to comment.