File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/gh/components/DF_tester Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1111
1212class DFTester (component ):
1313 def RunScript (self ):
14+ # version
1415 ghenv .Component .Message = f"diffCheck v: { diffCheck .__version__ } " # noqa: F821
15- is_binding_imported = diffcheck_bindings .dfb_test .test ()
1616
17+ # bindings
18+ is_binding_imported = diffcheck_bindings .dfb_test .test ()
1719 if not is_binding_imported :
1820 ghenv .Component .AddRuntimeMessage (RML .Warning , "Bindings not imported." ) # noqa: F821
1921 else :
2022 ghenv .Component .AddRuntimeMessage (RML .Remark , "Bindings imported." ) # noqa: F821
21-
2223 print (f"diffCheck test: { diffCheck .df_cvt_bindings .test_bindings ()} " )
2324
25+ # workspace unit
26+ scalef = diffCheck .df_util .get_doc_2_meters_unitf ()
27+ if scalef != 1.0 :
28+ ghenv .Component .AddRuntimeMessage (RML .Warning , "Workspace unit is not in meters." ) # noqa: F821
29+ else :
30+ ghenv .Component .AddRuntimeMessage (RML .Remark , "Workspace unit is in meters." ) # noqa: F821
31+
2432 return is_binding_imported
You can’t perform that action at this time.
0 commit comments