Views

Documentation for all the different views of the database accessible through the Flask server.

imeall.views.analysis()[source]

This view collates data from the grain boundary database and forwards it to d3 analysis tools.

imeall.views.eam_pot(filename)[source]

Uses matplotlib to inspect xml potential files in the database.

imeall.views.grain_boundary(url_path, gbid)[source]

Top view for a canonical grain boundary. CSL lattice, and list of subgrain directories, and energies.

Todo

Replace make_tree with an SQL query.

imeall.views.home_page()[source]

Overview of imeall database. Links to material views.

imeall.views.make_tree(path)[source]

Recurse through subgrain directories collecting json and png files.

imeall.views.material(material)[source]

View of available orientation axes for a particular material.

imeall.views.orientations(url_path, orientation)[source]

View to list different orientation axes in the material database.

imeall.views.run_ovito(filename)[source]

Launches the Ovito application with the associated grain boundary trajectory file loaded. The alias ‘ovito’ must be set in environment. This function can only be used if running server locally with a local copy of the database.

imeall.views.serve_file(textpath)[source]

Serve different common file types to the browser.

imeall.views.serve_img(filename, gbid, img_type)[source]

Serve image_file to the browser.

imeall.views.serve_struct(textpath=None)[source]

View for serving files to clients [png, json, xyz].