Skip to content

Commit

Permalink
Update harrypotter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
brendapraggastis authored Jun 26, 2021
1 parent 272f46e commit fd3a889
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hypernetx/utils/toys/harrypotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd3a889

Please sign in to comment.