Skip to content

Commit

Permalink
Rewrite Test
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMau committed Nov 28, 2023
1 parent 8b511d9 commit 620993c
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions tests/test_build_datapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,27 +341,13 @@ def test_period_csv_creation():
sequence_goal.index.name = "timeindex"
pd.testing.assert_frame_equal(sequence_goal, sequence_created)

def test_tsam_integration():
# Setup Directory to read timeseries from
dir = os.path.join(path_default, "tabular_datapackage_hack_a_thon", "data", "sequences")
load_dir = os.path.join(dir, "modex_tech_load_load_sequence.csv")
utility_dir = os.path.join(dir, "modex_tech_photovoltaics_utility_sequence.csv")
onshore_dir = os.path.join(dir, "modex_tech_wind_turbine_onshore_sequence.csv")

load = pd.read_csv(load_dir, sep=";", index_col=0)
utility= pd.read_csv(utility_dir, sep=";", index_col=0)
onshore= pd.read_csv(onshore_dir, sep=";", index_col=0)

load_aggregation = tsam.TimeSeriesAggregation(load,
noTypicalPeriods = 3,
hoursPerPeriod = 24,
segmentation = True,
noSegments = 8,
representationMethod = "distributionAndMinMaxRepresentation",
distributionPeriodWise = False,
clusterMethod = 'hierarchical'
)
load_type_periods = load_aggregation.createTypicalPeriods()
def test_tsam():
"""
Uses Mock to create datapackage and then applies timeseries aggregation to it.
Returns
-------
"""



Expand Down

0 comments on commit 620993c

Please sign in to comment.