oasys-elettra-kit / OASYS1-Wiser

The implementation of WISER into OASYS
MIT License
0 stars 1 forks source link

Unit handling #12

Closed aljosahafner closed 4 years ago

aljosahafner commented 4 years ago

Use built-in Oasys unit conversion so that the workspace setting can correctly work with Wiser widgets.

image

aljosahafner commented 4 years ago

All the units coming from the GUI have to be multiplied by self.workspace_units_to_m

Then the setting works correctly.

aljosahafner commented 4 years ago

Labels have to be modified in individual after_change_workspace_units(). Super class always has to be initialized if additional properties are inserted, otherwise the base is overwritten...