Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Statistics] Verify stat file and insert population and workhours if missing #12

Merged
merged 7 commits into from
Apr 2, 2020

Conversation

NicEastvillage
Copy link
Contributor

Depends on #5

In this addition various verification is done on the stats file. Including:

  • is it even a city
  • does it contain inhabitants and households values (required by ActivityGen)

In case the population and workhour entries are missing, some default values are insert as at least one population bracket is required and at least one opening and closing workhour is required.

In the future we might want to generate the stat file from scratch (#11)

Copy link
Member

@falkecarlsen falkecarlsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, except erratic change to get_perlin_noise

perlin.py Outdated Show resolved Hide resolved
@NicEastvillage NicEastvillage merged commit 22665da into master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants