mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
added start/stop button (#173)
* added start/stop button * added declorator; fixed camera interrupt race condition * add docs + typechecking
This commit is contained in:
1 parent
05b92e228b
commit
12c7d41241
7 files changed
+164
-57
No files matched your search
@@ -45,6 +45,18 @@ def check_profiler_enabled(func: Callable) -> Callable:
|
||||
return wrapper
|
||||
|
||||
|
||||
def check_visualizer_enabled(func: Callable) -> Callable:
|
||||
"""Decorator: check if visualizer is enabled"""
|
||||
|
||||
def wrapper(self, *args, **kwargs):
|
||||
ret = None
|
||||
if self.vis:
|
||||
ret = func(self, *args, **kwargs)
|
||||
return ret
|
||||
|
||||
return wrapper
|
||||
|
||||
|
||||
def check_main_thread(func: Callable) -> Callable:
|
||||
"""Decorator: check if you are on main thread"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user