oasys-elettra-kit / OASYS1-Wiser

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

DETECTOR=>Smart Autofocus #70

Closed capitanevs closed 2 years ago

capitanevs commented 3 years ago

IF "smart autofocus" is selected AND there is no focussing mirror before,then a not understandable error message is shown.

Wehave to translate it into human-readible.

On which Layer? oasyswiser, LibWiser?

immagine

capitanevs commented 3 years ago

Up to Michele: Put into LibWiser

capitanevs commented 2 years ago

This is how it looks like now

immagine

capitanevs commented 2 years ago

It can be closed (next meeting)

capitanevs commented 2 years ago

How to write multiline strings and NO carriage return

                            raise WiserException("LibWiser error\n" \
                            "DESCRIPTION: It is not possible to find a previous element that matches the positioning directives.\n\n" \
                            "POSSIBLE SOLUTION: the user wants to place a 'Detector' element in the focus of the upstream focusing " \
                                   " mirror, but WISER could not find any focusing mirror just upstream. To fix this, try to change" \
                                   " the positioning directives of the 'Detector'\n\n" \
                            "ERROR MESSAGE: : the variable oeXSameOrientationCurrent is None.")