Skip to content

Commit

Permalink
Add shim for viewer_elements namespace, fixes ayaanzhaque/instruct-ne…
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Jan 19, 2024
1 parent 0d66c8d commit fdca647
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nerfstudio/viewer/server/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2022 the Regents of the University of California, Nerfstudio Team and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

19 changes: 19 additions & 0 deletions nerfstudio/viewer/server/viewer_elements.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2022 the Regents of the University of California, Nerfstudio Team and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Shim for viewer_elements.py, which has been moved.
Resolves issues like: https://github.com/ayaanzhaque/instruct-nerf2nerf/pull/88
"""
from ..viewer_elements import *

Check failure on line 19 in nerfstudio/viewer/server/viewer_elements.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F403)

nerfstudio/viewer/server/viewer_elements.py:19:1: F403 `from ..viewer_elements import *` used; unable to detect undefined names

0 comments on commit fdca647

Please sign in to comment.