Skip to content

Commit

Permalink
Refactor pointing vector variable name and add conditional check for …
Browse files Browse the repository at this point in the history
…manual settings in Ramanspectroscopy class
  • Loading branch information
budschi committed Sep 27, 2024
1 parent ece35d2 commit 807a32d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/nomad_ikz_raman/schema_packages/raman.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,14 @@ class Sample(CompositeSystemReference):
'name',
'reference',
'lab_id',
'pointing_vector',
'pointing_vector_direction',
'crystallographic_direction_of_E_vector',
],
),
overview=True,
)
)
pointing_vector = Quantity(
pointing_vector_direction = Quantity(
type=str,
description='Pointing vector referenced to surface normal in h k l, e.g. (100).',
a_eln={'component': 'StringEditQuantity'},
Expand Down Expand Up @@ -612,9 +612,10 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
'Z',
)
self.measurement_settings = measurementsettings
self.manual_settings = ManualSettings()
self.manual_settings.polarization = Polarization()
self.manual_settings.filters = Filters()
if not self.manual_settings:
self.manual_settings = ManualSettings()
self.manual_settings.polarization = Polarization()
self.manual_settings.filters = Filters()
ramanspectrometerref = RamanSpectrometerReference()
ramanspectrometerref.lab_id = raman_dict.get('InstrumentID')
ramanspectrometerref.normalize(archive, logger)
Expand Down

0 comments on commit 807a32d

Please sign in to comment.