Skip to content

Commit

Permalink
Modified model skeleton to use Path for the future
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-nyx committed Dec 13, 2023
1 parent b96dd01 commit 23b2da9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omf/models/modelSkeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
# warnings.filterwarnings("ignore")

import shutil, datetime
from os.path import join as pJoin
from pathlib import Path

# OMF imports
from omf import feeder
from omf.models.voltageDrop import drawPlot
from omf.models import __neoMetaModel__
from omf.models.__neoMetaModel__ import *

# Model metadata:
# Model metadata
modelName, template = __neoMetaModel__.metadata(__file__)
hidden = True

Expand Down Expand Up @@ -65,7 +65,7 @@ def new(modelDir):
@neoMetaModel_test_setup
def _tests():
# Location
modelLoc = pJoin(__neoMetaModel__._omfDir,"data","Model","admin","Automated Testing of " + modelName)
modelLoc = Path(__neoMetaModel__._omfDir,"data","Model","admin","Automated Testing of " + modelName)
# Blow away old test results if necessary.
try:
shutil.rmtree(modelLoc)
Expand Down

0 comments on commit 23b2da9

Please sign in to comment.