You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Mellissa
I just followed your 2018 paper. And I met with this problem when running codes from line 74 to 76.
# Make then edit text file of labels
pysplit.labelfile_generator(r'F:/trajectories/umn/umnlabels.txt', example='west')
Then, a KeyError is reported:
KeyError Traceback (most recent call last)
<ipython-input-18-5f357be86803> in <module>()
1 # Make then edit text file of labels
----> 2 pysplit.labelfile_generator(r'F:\trajectories\umn\umnlabels.txt', example=['west'])
B:\anaconda3\envs\pysplitenv\lib\site-packages\pysplit\maplabeller.py in labelfile_generator(labelfile, example)
257 example = 'east'
258
--> 259 labels = lbdict['example']
260
261 with open(labelfile, 'w') as labelfile:
KeyError: 'example'
How can I solve this problem?
Best regards,
Tingvan
The text was updated successfully, but these errors were encountered:
Hi Mellissa
I just followed your 2018 paper. And I met with this problem when running codes from line 74 to 76.
Then, a KeyError is reported:
How can I solve this problem?
Best regards,
Tingvan
The text was updated successfully, but these errors were encountered: