From 1945f656e082c55ee2a3c67e695ee11241548ad1 Mon Sep 17 00:00:00 2001 From: cdeline Date: Sun, 6 Oct 2024 18:59:52 -0600 Subject: [PATCH] Reverted accidental .gitignore deletion and test_load changes. --- bifacial_radiance/TEMP/.gitignore | 4 ++++ tests/test_load.py | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 bifacial_radiance/TEMP/.gitignore diff --git a/bifacial_radiance/TEMP/.gitignore b/bifacial_radiance/TEMP/.gitignore new file mode 100644 index 00000000..86d0cb27 --- /dev/null +++ b/bifacial_radiance/TEMP/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/tests/test_load.py b/tests/test_load.py index 648fb930..9c71b6d1 100644 --- a/tests/test_load.py +++ b/tests/test_load.py @@ -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)