Skip to content

Commit 842c5cd

Browse files
fix _get_file_path util function
1 parent 043297f commit 842c5cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/geophires_x/EconomicsSam.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,3 @@ def _sig_figs(val: float, num_sig_figs: int) -> float:
143143
except TypeError:
144144
# TODO warn
145145
return val
146-
147-
148-
def _get_file_path(file_name) -> str:
149-
return os.path.join(os.path.abspath(os.path.dirname(__file__)), file_name)

src/geophires_x/EconomicsSamCashFlow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from __future__ import annotations
22

33
import csv
4+
import os
45
import re
56
from functools import lru_cache
67
from typing import Any
78

89
from PySAM import Singleowner
910

1011
from geophires_x import Model as Model
11-
from geophires_x.EconomicsSam import _get_file_path
1212

1313

1414
@lru_cache(maxsize=12)
@@ -199,3 +199,7 @@ def ga(_p):
199199
return prop(soo)
200200

201201
return getattr(soo, prop)
202+
203+
204+
def _get_file_path(file_name) -> str:
205+
return os.path.join(os.path.abspath(os.path.dirname(__file__)), file_name)

0 commit comments

Comments
 (0)