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

Trait Error using LSTEventSource #5

Closed
chaimain opened this issue Mar 14, 2019 · 1 comment
Closed

Trait Error using LSTEventSource #5

chaimain opened this issue Mar 14, 2019 · 1 comment

Comments

@chaimain
Copy link

chaimain commented Mar 14, 2019

I am getting the following TraitError while using LSTEventSource to read data from a file.

TraitError                                Traceback (most recent call last)
<ipython-input-15-d2660da20ecf> in <module>
      3 inputfile_reader = LSTEventSource(
      4         input_url=example_file_path,
----> 5         max_events=10
      6     )
      7 

~/software/anaconda2/envs/cta-dev/lib/python3.6/site-packages/ctapipe_io_lst-0.2-py3.6.egg/ctapipe_io_lst/__init__.py in __init__(self, config, tool, **kwargs)
     56             self.file_list.sort()
     57             kwargs['input_url'] = self.file_list[0]
---> 58             super().__init__(config=config, tool=tool, **kwargs)
     59         else:
     60             super().__init__(config=config, tool=tool, **kwargs)

~/software/ctasoft/ctapipe/ctapipe/io/eventsource.py in __init__(self, config, parent, **kwargs)
    142         kwargs
    143         """
--> 144         super().__init__(config=config, parent=parent, **kwargs)
    145 
    146         self.metadata = dict(is_simulation=False)

~/software/ctasoft/ctapipe/ctapipe/core/component.py in __init__(self, config, parent, **kwargs)
    100         for key, value in kwargs.items():
    101             if not self.has_trait(key):
--> 102                 raise TraitError(f"Traitlet does not exist: {key}")
    103 
    104         # set up logging

TraitError: Traitlet does not exist: tool

Can someone help me regarding this issue?

@maxnoe
Copy link
Member

maxnoe commented Mar 14, 2019

This is due to a change in ctapipe.

I will fix this here.

@kosack kosack closed this as completed in c3f57cd Mar 15, 2019
kosack added a commit that referenced this issue Mar 15, 2019
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

2 participants