Skip to content

Commit

Permalink
update results imports/exports
Browse files Browse the repository at this point in the history
  • Loading branch information
schumannj committed Mar 26, 2024
1 parent 724260a commit e960c03
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
Results,
Properties,
CatalyticProperties,
Reactivity
Reaction
)
from nomad.datamodel.metainfo.plot import (
PlotSection,
Expand All @@ -61,8 +61,8 @@ def add_activity(archive):
archive.results.properties = Properties()
if not archive.results.properties.catalytic:
archive.results.properties.catalytic = CatalyticProperties()
if not archive.results.properties.catalytic.reactivity:
archive.results.properties.catalytic.reactivity = Reactivity()
if not archive.results.properties.catalytic.reaction:
archive.results.properties.catalytic.reaction = Reaction()

# class CatalystSample(CompositeSystem, EntryData):
# '''Example section for a catalyst sample.'''
Expand Down Expand Up @@ -192,16 +192,16 @@ def normalize(self, archive, logger):

add_activity(archive)
if self.set_temperature is not None:
archive.results.properties.catalytic.reactivity.test_temperatures = self.set_temperature
archive.results.properties.catalytic.reaction.temperature = self.set_temperature
if self.set_pressure is not None:
archive.results.properties.catalytic.reactivity.pressure = self.set_pressure
archive.results.properties.catalytic.reaction.pressure = self.set_pressure
if self.set_total_flow_rate is not None:
archive.results.properties.catalytic.reactivity.flow_rate = self.set_total_flow_rate
archive.results.properties.catalytic.reaction.flow_rate = self.set_total_flow_rate
if self.weight_hourly_space_velocity is not None:
archive.results.properties.catalytic.reactivity.weight_hourly_space_velocity = self.weight_hourly_space_velocity
archive.results.properties.catalytic.reaction.weight_hourly_space_velocity = self.weight_hourly_space_velocity

if self.reagents is not None:
archive.results.properties.catalytic.reactivity.reactants = self.reagents
archive.results.properties.catalytic.reaction.reactants = self.reagents


class CatalyticSectionConditions_dynamic(CatalyticSectionConditions_static):
Expand Down

0 comments on commit e960c03

Please sign in to comment.