Skip to content

Commit

Permalink
Incorporating Kodi comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pesap committed Sep 3, 2024
1 parent 683f390 commit 9362840
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions src/r2x/exporter/plexos.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
import uuid
import string
from collections.abc import Callable
from pathlib import Path

from infrasys.component import Component
from loguru import logger

from r2x.config import Scenario
from r2x.enums import ReserveType
from r2x.exporter.handler import BaseExporter
from plexosdb import PlexosSQLite
Expand Down Expand Up @@ -838,25 +836,3 @@ def get_valid_component_properties(
property_value = get_property_magnitude(property_value, to_unit=unit_map.get(property_name))
valid_component_properties[property_name] = property_value
return valid_component_properties


if __name__ == "__main__":
run_folder = Path("tests/data/pacific/")
# Functions relative to the parser.
from tests.models.systems import ieee5bus_system

config = Scenario.from_kwargs(
name="PlexosExportTest",
input_model="reeds-US",
output_model="plexos",
run_folder=run_folder,
solve_year=2035,
weather_year=2012,
)
system = ieee5bus_system()

# fpath = "/Users/psanchez/downloads/test.xml"
fpath = "/Volumes/r2x/test_models/test.xml"
exporter = PlexosExporter(config=config, system=system)
exporter.run()
# handler = exporter.xml
2 changes: 1 addition & 1 deletion src/r2x/exporter/sienna.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def process_storage_data(self, fname="storage.csv") -> None:
fpath=self.output_folder / fname,
fields=output_fields,
key_mapping=key_mapping,
unnest_key="numer",
unnest_key="number",
restval="NA",
)

Expand Down

0 comments on commit 9362840

Please sign in to comment.