Skip to content

Commit

Permalink
decrease size of RichTextEditQuantity,
Browse files Browse the repository at this point in the history
add diluent_mass
  • Loading branch information
schumannj committed Dec 11, 2024
1 parent 7074b0e commit 30d5077
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/nomad_catalysis/schema_packages/catalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,15 @@ class CatalystSample(CompositeSystem, Schema):
links=['https://w3id.org/nfdi4cat/voc4cat_0000016'],
)

description = Quantity(
type=str,
shape=[],
description="""
A description of the catalyst sample.
""",
a_eln=dict(component='RichTextEditQuantity', props=dict(height=200)),
)

def populate_results(self, archive: 'EntryArchive', logger) -> None:
"""
This function copies the catalyst sample information specified in the dictionary
Expand Down Expand Up @@ -559,6 +568,14 @@ class ReactorFilling(ArchiveSection):
props=dict(suggestions=['SiC', 'SiO2', 'unknown']),
),
)

diluent_mass = Quantity(
type=np.float64,
shape=[],
unit='kg',
a_eln=dict(component='NumberEditQuantity', defaultDisplayUnit='mg'),
)

diluent_sievefraction_upper_limit = Quantity(
type=np.float64,
shape=[],
Expand Down Expand Up @@ -1243,6 +1260,15 @@ class CatalyticReactionCore(Measurement):
a_eln=dict(component='EnumEditQuantity'),
)

description = Quantity(
type=str,
shape=[],
description="""
A description of the catalyst sample.
""",
a_eln=dict(component='RichTextEditQuantity', props=dict(height=200)),
)


class CatalyticReactionData(PlotSection, MeasurementResult):
temperature = Quantity(
Expand Down

0 comments on commit 30d5077

Please sign in to comment.