Skip to content

Commit 5045dcd

Browse files
authored
Warn instead of erroring when using edl formatter (#271)
1 parent 7ddd7d2 commit 5045dcd

File tree

1 file changed

+4
-1
lines changed
  • src/fastcs/transport/epics

1 file changed

+4
-1
lines changed

src/fastcs/transport/epics/gui.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@
3939
Waveform,
4040
)
4141
from fastcs.exceptions import FastCSError
42+
from fastcs.logging import bind_logger
4243
from fastcs.util import numpy_to_fastcs_datatype, snake_to_pascal
4344

4445
from .options import EpicsGUIFormat, EpicsGUIOptions
4546

47+
logger = bind_logger(logger_name=__name__)
48+
4649

4750
class EpicsGUI:
4851
"""For creating gui in the EPICS transports."""
@@ -145,7 +148,7 @@ def create_gui(self, options: EpicsGUIOptions | None = None) -> None:
145148
options = EpicsGUIOptions()
146149

147150
if options.file_format is EpicsGUIFormat.edl:
148-
raise FastCSError("FastCS does not support .edl screens.")
151+
logger.warning("FastCS may not support all widgets in .edl screens")
149152

150153
assert options.output_path.suffix == options.file_format.value
151154
options.output_path.parent.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)