-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from psrenergy/feature/name
Removed trailing spaces from agents name and unit
- Loading branch information
Showing
5 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Varies per block? , 2,Unit ,MW , 2, 1, 2003 | ||
Varies per sequence? , 1 | ||
# of agents , 3 | ||
Stag,Seq.,Blck,Barra 1 ,Barra 2 ,Barra 3 | ||
1, 1, 1, 10.000 , 2.0000 , -12.000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function issue13() | ||
path = joinpath(".", "data", "businj") | ||
|
||
reader = PSRI.open( | ||
GrafCSV.Reader, | ||
path, | ||
) | ||
|
||
@test PSRI.data_unit(reader) == "MW" | ||
@test PSRI.stage_type(reader) == PSRI.STAGE_MONTH | ||
@test PSRI.initial_stage(reader) == 1 | ||
@test PSRI.initial_year(reader) == 2003 | ||
|
||
@test PSRI.max_agents(reader) == 3 | ||
@test PSRI.agent_names(reader)[1] == "Barra 1" | ||
@test PSRI.agent_names(reader)[2] == "Barra 2" | ||
@test PSRI.agent_names(reader)[3] == "Barra 3" | ||
end | ||
|
||
function test_issues() | ||
@testset "Issue 13" begin issue13() end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters