nn# void - Visnjan Observatory Image Database
-
cdintosetupfolder -
Run
bash install_requirements.shand press [ENTER] to continue -
Execute the following commands:
sudo -i -u postgrescreateuser <user> -P --interactive
-
Answer "n" to superuser and "y" to other questions
-
Create a new database:
createdb <db_name> -
Run
Setup.py <db> (--user=USER) (--passwd=PASSWORD) (--src=IMAGES_FOLDER_PATH) [--host=HOST] [--port=PORT] -
The
datasetfolder contains sample images and can used for testing:--src dataset
Using Homebrew for simplicity, not required.
- Install Homebrew
- Install PostgreSQL
bash brew install postgres
- or
brew upgrade postgresif already installed
- Permission for for OS X Mojave:
bash sudo mkdir /usr/local/Frameworks sudo chown $(whoami):admin /usr/local/Frameworks - Install PostGIS
bash brew install postgis - Start the service:
bash brew services start postgresql
It is a bad idea to use global Python installation. Here we are making a virtual environment using pyenv, but any similar solution will work.
brew install pyenv
pyenv install 3.7.1
pyenv virtualenv 3.7.1 void
cd somewhere
mkdir void_project
cd void_project
pyenv local voidIf you just wish to use void, download and install the release package:
curl -OL https://github.com/astrohr/void/archive/0.0.1.tar.gz
tar -xvzf 0.0.1.tgz
cd void-0.0.1
pip install .For development, checkout the repo instead:
git clone git@github.com:frnhr/void.git .
pip install -e .[dev]Two ways to run tests manually: * run tests as a python module: python -m void.tests * run directly: void/tests/__main__.py
...