gemd.demo.strehlow_and_cook module
Demo representing Strehlow & Cook bandgap data with data concepts.
- gemd.demo.strehlow_and_cook.formula_clean(old)
Transform a formula into a cleaner version.
- gemd.demo.strehlow_and_cook.formula_latex(old)
Transform a formula into one with LaTeX markup.
- gemd.demo.strehlow_and_cook.import_table(filename='strehlow_and_cook_small.pif')
Return the deserialized JSON table.
- gemd.demo.strehlow_and_cook.make_display_table(structured)
Generate a Display Table from a passed Structured Table.
This routine takes in a prototyped Structured Table and returns a prototyped Display Table (CSV of scalar values) based upon some standard assumptions about how it should be displayed.
- Parameters
structured – A structured table, such as generated by make_strehlow_table
:return
- gemd.demo.strehlow_and_cook.make_strehlow_objects(table: Optional[Iterable] = None, template_scope: str = 'citrine-demo-sac-template')
Make a table with Strehlow & Cook data.
- gemd.demo.strehlow_and_cook.make_strehlow_table(compounds)
Headers and content for the output of make_strehlow_objects.
Note that this is supposed to be mimicking the transformation of a set of Material Histories into a Training Table, and as such we are missing the column definition component of the query that created this particular result set.
- Parameters
compounds – a list of MaterialRun objects from the make_strehlow_objects method
- Returns
- gemd.demo.strehlow_and_cook.make_templates(template_scope: str = 'citrine-demo-sac-template')
Build all templates needed for the table.
- gemd.demo.strehlow_and_cook.minimal_subset(table)
Transform an incoming table into the minimal example that reflects full diversity.