fixes Layer temperature and pressure keys (deletes trailing whitespace)

also changes default elabid to newer resource
This commit is contained in:
2026-02-09 15:14:32 +01:00
parent c5f85b2618
commit 03d7811904

View File

@@ -48,10 +48,8 @@ class Layer:
This has to be an error, since these fields are required by the NeXus standard.
Please edit your eLabFTW entry and retry.
""")
# TO-DO: remove trailing space on eLabFTW's template for deposition layers
self.temperature = self.extra["Heater temperature "]["value"] # TYPO: trailing space, must fix on elabftw
self.process_pressure = self.extra["Process pressure "]["value"] # TYPO: trailing space, must fix on elabftw
# </todo>
self.temperature = self.extra["Heater temperature"]["value"] # Note: this field used to have a trailing space in its name
self.process_pressure = self.extra["Process pressure"]["value"] # Note: this field used to have a trailing space in its name
self.heating_method = self.extra["Heating Method"]["value"]
self.layer_thickness = self.extra["Thickness"]["value"]
self.buffer_gas = self.extra["Buffer gas"]["value"]
@@ -163,7 +161,7 @@ if __name__=="__main__":
try:
elabid = elabid
except NameError:
elabid = input("Input elabid here [default = 1108]: ") or 1108
elabid = input("Input elabid here [default = 1111]: ") or 1111
data = get_entry_from_elabid(elabid, entryType)
if entryType == "experiments":
layer = Layer(data)