Skip to content

Commit

Permalink
Create results path for csp examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jnnr committed Mar 30, 2020
1 parent 3a33876 commit f77bee8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
17 changes: 14 additions & 3 deletions examples/concentrating_solar_power/csp_collector_plot_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@
example, which shows the difference between the new approach and a fix
efficiency
"""
import os

from oemof.thermal.concentrating_solar_power import csp_precalc
import pandas as pd
import matplotlib.pyplot as plt
import pandas as pd

from oemof.thermal.concentrating_solar_power import csp_precalc


# Set results path
base_path = os.path.dirname(os.path.abspath(os.path.join(__file__)))

results_path = os.path.join(base_path, 'results')

if not os.path.exists(results_path):
os.mkdir(results_path)

# precaluculation #
# precalculation #

dataframe = pd.read_csv('csp_data/data_Muscat_22_8.csv')
dataframe['Datum'] = pd.to_datetime(dataframe['Datum'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@
example, which shows the difference between the new approach and a fix
efficiency
"""
import os

from oemof.thermal.concentrating_solar_power import csp_precalc
import pandas as pd
import matplotlib.pyplot as plt
import pandas as pd

from oemof.thermal.concentrating_solar_power import csp_precalc

# set results path
base_path = os.path.dirname(os.path.abspath(os.path.join(__file__)))

results_path = os.path.join(base_path, 'results')

if not os.path.exists(results_path):
os.mkdir(results_path)

# precaluculation #
# precalculation #

dataframe = pd.read_csv('csp_data/data_Muscat_22_8.csv')
dataframe['Datum'] = pd.to_datetime(dataframe['Datum'])
Expand Down
13 changes: 12 additions & 1 deletion examples/concentrating_solar_power/csp_plant_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,24 @@
SPDX-License-Identifier: GPL-3.0-or-later
"""
import os

import pandas as pd

from oemof import solph
from oemof.tools import economics
from oemof.thermal.concentrating_solar_power import csp_precalc
import pandas as pd
import oemof.outputlib as outputlib


# set results path
base_path = os.path.dirname(os.path.abspath(os.path.join(__file__)))

results_path = os.path.join(base_path, 'results')

if not os.path.exists(results_path):
os.mkdir(results_path)

# precaluculation #

dataframe = pd.read_csv('csp_data/data_csp_plant.csv')
Expand Down

0 comments on commit f77bee8

Please sign in to comment.