There was an error while loading. Please reload this page.
1 parent 8db92c2 commit 7538af4Copy full SHA for 7538af4
1 file changed
RATapi/__init__.py
@@ -1,11 +1,16 @@
1
"""RATapi is a Python package for modelling, fitting and optimising reflectivity problems."""
2
3
+from contextlib import suppress
4
+
5
import RATapi.examples as examples
6
from RATapi import events, models
7
from RATapi.classlist import ClassList
8
from RATapi.controls import Controls
9
from RATapi.project import Project
10
from RATapi.run import run
-from RATapi.utils import convert, orso, plotting
11
+from RATapi.utils import convert, plotting
12
13
+with suppress(ImportError): # orsopy is an optional dependency
14
+ from RATapi.utils import orso as orso
15
-__all__ = ["examples", "models", "events", "ClassList", "Controls", "Project", "run", "plotting", "convert", "orso"]
16
+__all__ = ["examples", "models", "events", "ClassList", "Controls", "Project", "run", "plotting", "convert"]
0 commit comments