Skip to content

Commit

Permalink
Merge branch 'main' into fix-readme-py3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
geofjamg authored Feb 10, 2024
2 parents 7b8203a + 9a48cc4 commit 7478d68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static NetworkDataframeMapper generators() {
return NetworkDataframeMapperBuilder.ofStream(Network::getGeneratorStream, getOrThrow(Network::getGenerator, "Generator"))
.stringsIndex("id", Generator::getId)
.strings("name", g -> g.getOptionalName().orElse(""))
.enums("energy_source", EnergySource.class, Generator::getEnergySource)
.enums("energy_source", EnergySource.class, Generator::getEnergySource, Generator::setEnergySource)
.doubles("target_p", Generator::getTargetP, Generator::setTargetP)
.doubles("min_p", Generator::getMinP, Generator::setMinP)
.doubles("max_p", Generator::getMaxP, Generator::setMaxP)
Expand Down

0 comments on commit 7478d68

Please sign in to comment.