From fd3a8897a930d214deb454c429107f3d20db4ab4 Mon Sep 17 00:00:00 2001 From: Brenda Praggastis <39808911+brendapraggastis@users.noreply.github.com> Date: Sat, 26 Jun 2021 13:39:50 -0700 Subject: [PATCH] Update harrypotter.py --- hypernetx/utils/toys/harrypotter.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hypernetx/utils/toys/harrypotter.py b/hypernetx/utils/toys/harrypotter.py index 137876b0..eb764b7d 100644 --- a/hypernetx/utils/toys/harrypotter.py +++ b/hypernetx/utils/toys/harrypotter.py @@ -16,12 +16,12 @@ class HarryPotter(object): def __init__(self, cols=None): # Read dataset in using pandas. Fix index column or use default pandas index. - try: - fname = "HarryPotter_Characters.csv" - harrydata = pd.read_csv(f'{current_dir}/{fname}', encoding="unicode_escape") - except: - fname = "https://raw.githubusercontent.com/pnnl/HyperNetX/master/hypernetx/utils/toys/HarryPotter_Characters.csv" - harrydata = pd.read_csv(fname, encoding="unicode_escape") +# try: +# fname = "HarryPotter_Characters.csv" +# harrydata = pd.read_csv(f'{current_dir}/{fname}', encoding="unicode_escape") +# except: + fname = "https://raw.githubusercontent.com/pnnl/HyperNetX/master/hypernetx/utils/toys/HarryPotter_Characters.csv" + harrydata = pd.read_csv(fname, encoding="unicode_escape") self.harrydata = pd.DataFrame(harrydata) # Choose string to fill NaN. These will be set to 0 in system id = sid