Skip to content

Commit

Permalink
Change paths back
Browse files Browse the repository at this point in the history
  • Loading branch information
HamishBrownPFR committed Mar 5, 2024
1 parent a48a480 commit 0025397
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions TestComponents/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public class Test
{
public static void RunAllTests()
{
string root = Directory.GetCurrentDirectory();
//string root = "C:\\GitHubRepos\\FieldNBalance";
string path = Path.Join(root, "TestComponents", "TestSets");
//string path = Path.Join(root, "TestComponents", "TestSets");
string path = Path.Join("TestComponents", "TestSets");
List<string> sets = new List<string> { "WS2", "Residues", "Location", "Moisture" };

//Delete graphs from previous test run
Expand Down
6 changes: 3 additions & 3 deletions TestGraphs/MakeConfigs/WS2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
},
"outputs": [],
"source": [
"root = os.split(os.abspath('WS2.ipynb'))[0][:-23]\n",
"path = os.join(root,\"TestComponents\", \"TestSets\", \"WS2\")\n",
"#path = join(\"TestComponents\", \"TestSets\", \"WS2\")"
"#root = os.split(os.abspath('WS2.ipynb'))[0][:-23]\n",
"#path = os.join(root,\"TestComponents\", \"TestSets\", \"WS2\")\n",
"path = join(\"TestComponents\", \"TestSets\", \"WS2\")"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions TestGraphs/MakeConfigs/WS2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
9: 'Oakley'
}

root = os.split(os.abspath('WS2.ipynb'))[0][:-23]
path = os.join(root,"TestComponents", "TestSets", "WS2")
#path = join("TestComponents", "TestSets", "WS2")
#root = os.split(os.abspath('WS2.ipynb'))[0][:-23]
#path = os.join(root,"TestComponents", "TestSets", "WS2")
path = join("TestComponents", "TestSets", "WS2")

Configs = pd.read_excel(os.join(path, "FieldConfigs.xlsx"),sheet_name=Sites[1],nrows=48,usecols=lambda x: 'Unnamed' not in x,keep_default_na=False)
Configs.set_index('Name',inplace=True)
Expand Down
6 changes: 4 additions & 2 deletions TestGraphs/MakeGraphs/WS2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
},
"outputs": [],
"source": [
"root = osp.split(osp.abspath('WS2.ipynb'))[0][:-22]\n",
"inPath = osp.join(root,\"TestComponents\", \"TestSets\", \"WS2\")\n",
"#root = osp.split(osp.abspath('WS2.ipynb'))[0][:-22]\n",
"# inPath = osp.join(root,\"TestComponents\", \"TestSets\", \"WS2\")\n",
"# outPath = osp.join(root,\"TestGraphs\", \"Outputs\") \n",
"inPath = osp.join(\"TestComponents\", \"TestSets\", \"WS2\")\n",
"outPath = osp.join(root,\"TestGraphs\", \"Outputs\") "
]
},
Expand Down
6 changes: 4 additions & 2 deletions TestGraphs/MakeGraphs/WS2.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
}
# -

root = osp.split(osp.abspath('WS2.ipynb'))[0][:-22]
inPath = osp.join(root,"TestComponents", "TestSets", "WS2")
#root = osp.split(osp.abspath('WS2.ipynb'))[0][:-22]
# inPath = osp.join(root,"TestComponents", "TestSets", "WS2")
# outPath = osp.join(root,"TestGraphs", "Outputs")
inPath = osp.join("TestComponents", "TestSets", "WS2")
outPath = osp.join(root,"TestGraphs", "Outputs")

Configs = pd.read_pickle(osp.join(inPath, "FieldConfigs.pkl"))
Expand Down

0 comments on commit 0025397

Please sign in to comment.