Skip to content

Commit

Permalink
Reverted accidental .gitignore deletion and test_load changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeline committed Oct 7, 2024
1 parent f10dd4d commit 1945f65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions bifacial_radiance/TEMP/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
7 changes: 2 additions & 5 deletions tests/test_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,9 @@ def test_gh126_raise_OSError():

def test_gh127_abspath():
"""RadianceObj path must be absolute"""
from pathlib import Path
#testpath = os.path.abspath(os.path.dirname(__file__))
projpath = Path(TESTDIR).parent
#projpath = os.path.dirname(TESTDIR)
testpath = os.path.abspath(os.path.dirname(__file__))
projpath = os.path.dirname(testpath)
temp_path = os.path.join(projpath, 'bifacial_radiance', 'TEMP')
print(temp_path)
demo = bifacial_radiance.RadianceObj(name='test', path=temp_path)
os.path.isabs(demo.path)

Expand Down

0 comments on commit 1945f65

Please sign in to comment.