Skip to content

Commit

Permalink
remove and deprecate old income attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Apr 1, 2024
1 parent 15f4ba1 commit 1033ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/matsim/prepare/population/AssignIncome.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

/**
* Draw income from german wide distribution.
* @deprecated income is already assigned during generation
*/
@Deprecated
public class AssignIncome implements PersonAlgorithm {

private final SplittableRandom rnd = new SplittableRandom(1234);
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/org/matsim/run/OpenBerlinScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ protected Config prepareConfig(Config config) {

@Override
protected void prepareScenario(Scenario scenario) {

AssignIncome income = new AssignIncome();

// Calculate the income for each person, in next versions this might also be done during creation of the population
scenario.getPopulation().getPersons().values().forEach(income::run);

}

@Override
Expand Down

0 comments on commit 1033ab3

Please sign in to comment.