Skip to content

Commit

Permalink
Change arg order
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Jan 9, 2024
1 parent 7c30d97 commit 4d40ba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyam/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2344,7 +2344,7 @@ def to_ixmp4(self, platform: ixmp4.Platform):
platform : :class:`ixmp4.Platform` or str
The ixmp4 platform database instance to which the scenario data is saved
"""
write_to_ixmp4(self, platform)
write_to_ixmp4(platform, self)

def _to_file_format(self, iamc_index):
"""Return a dataframe suitable for writing to a file"""
Expand Down
4 changes: 2 additions & 2 deletions pyam/ixmp4.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ def write_to_ixmp4(df, platform: ixmp4.Platform):
Parameters
----------
df : pyam.IamDataFrame
The IamDataFrame instance with scenario data
platform : :class:`ixmp4.Platform` or str
The ixmp4 platform database instance to which the scenario data is saved
df : pyam.IamDataFrame
The IamDataFrame instance with scenario data
"""
if not isinstance(platform, ixmp4.Platform):
platform = ixmp4.Platform(platform)
Expand Down

0 comments on commit 4d40ba8

Please sign in to comment.