Skip to content

Commit

Permalink
restructure folder #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriwet committed Jun 12, 2024
1 parent fe2e5fd commit ded310d
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion districtgenerator/classes/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os, math
import random as rd
import numpy as np
from classes.profils import Profiles
from districtgenerator.classes.profils import Profiles
import richardsonpy
import richardsonpy.classes.stochastic_el_load_wrapper as wrap
import richardsonpy.classes.appliance as app_model
Expand Down
2 changes: 1 addition & 1 deletion examples/e1.0_generate_first_district.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""

# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *


def example1_0_generate_first_district():
Expand Down
4 changes: 2 additions & 2 deletions examples/e1.1_generate_first_district.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *

def example1_1_generate_first_district():

Expand All @@ -23,7 +23,7 @@ def example1_1_generate_first_district():
# The weather data is taken from a Test Reference Year Database from the DWD.

# Generate Environment for the District
data.generateEnvironment()
data.generateEnvironment(plz=52074)

print("\nOur district now looks like this:")
print("District:" + str(data.district))
Expand Down
4 changes: 2 additions & 2 deletions examples/e1.2_generate_first_district.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"""

# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *

def example1_2_generate_first_district():

# Initialize District
data = Datahandler()

# Generate Environment for the District
data.generateEnvironment()
data.generateEnvironment(plz=52074)

# We initialize the buildings in our district. As input the name of a scenario file is required.
# In this example we use the existing example-file example.csv.
Expand Down
4 changes: 2 additions & 2 deletions examples/e1.3_generate_fist_district.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"""

# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *


def example1_3_generate_first_district() :
# Initialize District
data = Datahandler()

# Generate Environment for the District
data.generateEnvironment()
data.generateEnvironment(plz=52074)

# Initialize Buildings to the District
data.initializeBuildings(scenario_name="example")
Expand Down
2 changes: 1 addition & 1 deletion examples/e1.4_generate first_district.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *


def example1_4_generate_first_district():
Expand Down
2 changes: 1 addition & 1 deletion examples/e2_generate_custom_district.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *

# For this example we need to make same PREPARATIONS:

Expand Down
2 changes: 1 addition & 1 deletion examples/e3_first_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *


def example_fist_plots():
Expand Down
2 changes: 1 addition & 1 deletion examples/e4_change_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *

# PREPARATION

Expand Down
2 changes: 1 addition & 1 deletion examples/e5_change_TRYyear.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *

# PREPARATION: Change the weather data base

Expand Down
2 changes: 1 addition & 1 deletion examples/e6_change_indoor_Temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *

#PREPARATION: Change the minimum indoor temperature

Expand Down
2 changes: 1 addition & 1 deletion examples/e7_optiEnergyCentral_EHDO.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
In this example we use the EHDO tool to """

# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *


def example7_optiEnergyCentral_EHDO():
Expand Down
2 changes: 1 addition & 1 deletion examples/e8_scenario_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

# Import classes of the districtgenerator to be able to use the district generator.
from classes import *
from districtgenerator.classes import *



Expand Down
2 changes: 1 addition & 1 deletion examples/eX_seed_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Do you know the seed method? This example will show you, what it is good for and how to use it.
"""

from classes import *
from districtgenerator.classes import *
import matplotlib.pyplot as plt
import random as rd
import os
Expand Down
2 changes: 1 addition & 1 deletion examples/eX_seed_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
can be influenced by the seed number.
"""

from classes import *
from districtgenerator.classes import *
import matplotlib.pyplot as plt
import random as rd
import os
Expand Down
2 changes: 1 addition & 1 deletion examples/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os, sys, json
import numpy as np

from classes import *
from districtgenerator.classes import *


# Generate district data
Expand Down

0 comments on commit ded310d

Please sign in to comment.