Skip to content

Commit 5616e01

Browse files
Merge pull request #63 from pnnl/v103
updating harrypotter
2 parents cbf2520 + 9c053b1 commit 5616e01

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

hypernetx/utils/toys/harrypotter.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,14 @@ class HarryPotter(object):
1616
def __init__(self, cols=None):
1717

1818
# Read dataset in using pandas. Fix index column or use default pandas index.
19-
<<<<<<< HEAD
19+
2020
try:
2121
fname = "https://raw.githubusercontent.com/pnnl/HyperNetX/master/hypernetx/utils/toys/HarryPotter_Characters.csv"
2222
harrydata = pd.read_csv(fname, encoding="unicode_escape")
2323
except:
2424
fname = f'{current_dir}/HarryPotter_Characters.csv'
2525
harrydata = pd.read_csv(fname, encoding="unicode_escape")
26-
=======
27-
# try:
28-
# fname = "HarryPotter_Characters.csv"
29-
# harrydata = pd.read_csv(f'{current_dir}/{fname}', encoding="unicode_escape")
30-
# except:
31-
fname = "https://raw.githubusercontent.com/pnnl/HyperNetX/master/hypernetx/utils/toys/HarryPotter_Characters.csv"
32-
harrydata = pd.read_csv(fname, encoding="unicode_escape")
33-
>>>>>>> master
26+
3427
self.harrydata = pd.DataFrame(harrydata)
3528

3629
# Choose string to fill NaN. These will be set to 0 in system id = sid

0 commit comments

Comments
 (0)