Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An issue with labelfile_generator #73

Open
tingvan opened this issue Oct 19, 2020 · 0 comments
Open

An issue with labelfile_generator #73

tingvan opened this issue Oct 19, 2020 · 0 comments

Comments

@tingvan
Copy link

tingvan commented Oct 19, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant