PopFrame is an open source library that includes methods for modeling the framework of a regional-level settlement system for assessing territories subject to reclamation/renovation, as well as modeling scenarios for changing regional facilities. The library is designed to form a universal information model of the region based on localities.
- Core features
- Installation
- Examples
- Project Structure
- Documentation
- Developing
- License
- Acknowledgments
- Contacts
The library also provides tools for working with the information model of the region, which allow:
- Calculate indicators (population, birth rate, mortality) by municipal districts and municipalities.
- Evaluate territories in relation to the framework of the settlement system.
- Calculating the level of urbanization of the territory.
- The construction of agglomerations based on the framework of the settlement system
PopFrame can be installed with pip:
pip install popframe
Describe examples how it should work and should be used. Images, GIFs and code cells are welcome.
The latest version of the library is available in the main branch.
The repository includes the following directories and modules:
- popframe
- directory with the library code:
- preprocessing - data preprocessing module
- models - entities' classes used in library
- method - library tool methods based on
Regionmodel - utils - module containing utulity functions and consts
- tests
pytesttesting - examples examples of how methods work
- docs - documentation sources
Detailed information and description of BlocksNet is available in documentation.
To start developing the library, one must perform following actions:
Clone the repository:
$ git clone https://github.com/Mvin8/PopFrame
(Optional) Create a virtual environment as the library demands exact package versions:
$ make venv
Activate the virtual environment if you created one:
$ source .venv/bin/activate
Install the library in editable mode with development dependencies:
$ make install-dev
Install pre-commit hooks:
$ pre-commit install
Create a new branch based on
develop:$ git checkout -b develop <new_branch_name>
Start making changes on your newly created branch, remembering to never work on the
masterbranch! Work on this copy on your computer using Git to do the version control.Update tests according to your changes and run the following command:
$ make test
Make sure that all tests pass.
Update the documentation and README according to your changes.
- When you're done editing and local testing, run:
$ git add modified_files $ git committo record your changes in Git, then push them to GitHub with:
$ git push -u origin my-contributionFinally, go to the web page of your fork of the BlocksNet repo, and click 'Pull Request' (PR) to send your changes to the maintainers for review.
Check out the...
The project has BSD-3-Clause license
The library was developed as the main part of the ITMO University project...
You can contact us:
- NCCR - National Center for Cognitive Research
- IDU - Institute of Design and Urban Studies
- Maksim Natykin - lead software engineer
