Skip to content

Sorting Tool. Python/Flask and Javascript (d3). Based on work from Mike Bostock (https://bost.ocks.org/mike/) and Rob Schmuecker (http://bl.ocks.org/robschmuecker/7880033). Designed originally for the UAT, but can be used for a variety of projects.

License

Notifications You must be signed in to change notification settings

astrothesaurus/sorting-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Tool

Sorting Tool. Python/Flask and Javascript (d3). Based on work from Mike Bostock (https://bost.ocks.org/mike/) and Rob Schmuecker (http://bl.ocks.org/robschmuecker/7880033). Designed originally for the Unified Astronomy Thesuarus (http://astrothesaurus.org/), but can be used for a variety of projects.

Adding sections/branches

Simply add a JSON file to the static/topconcepts folder to add a new branch/section to the sorting tool.

The name of the JSON file will be used as the display name in the dropdown menu. For proper formatting, write the file name in all lower case and use underscores for spaces.

The JSON file must be in the following format:

{
    "name": "Exoplanet astronomy",
    "children": [{
        "name": "Exoplanet catalogs"
    }, {
        "name": "Exoplanet detection methods",
        "children": [{
            "name": "Astrometry",
            "children": [{
                "name": "Astronomical coordinate systems",
                "children": [{
                    "name": "Ecliptic coordinate system"
                }, {
                    "name": "Galactic coordinate system",
                    "children": [{
                        "name": "Galactic latitude"
                    }, {
                        "name": "Quadrants"
                    }]
                }, {
                    "name": "Horizontal coordinate system"
                }]
            }, {
                "name": "Planet hosting stars",
                "children": [{
                    "name": "Habitable zone"
                }]
            }]
        }]
    }]
}

Running locally in debug mode

set FLASK_APP=sortingtool.py

set FLASK_DEBUG=1

python -m flask run

To Do:

  • general look and feel
  • make feedback form smaller, or move it somewhere else on the screen?
  • make notes/instructions accessible while looking at the dendrogram too

About

Sorting Tool. Python/Flask and Javascript (d3). Based on work from Mike Bostock (https://bost.ocks.org/mike/) and Rob Schmuecker (http://bl.ocks.org/robschmuecker/7880033). Designed originally for the UAT, but can be used for a variety of projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published