-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
So since i cannot find any other documentation than (this)[http://deeplearnphysics.org/Blog/2018-01-01-BrowsingSegmentationData_v0.1.0.html] im trying to reproduce steps from the notebook to read the data.
the step:
# Let's grab a specific projection (1st one)
image2d = larcv.as_ndarray(chain_image2d.image2d_data_branch.as_vector().front())
label2d = larcv.as_ndarray(chain_label2d.image2d_segment_branch.as_vector().front())
I yielding following error:
TypeError Traceback (most recent call last)
<ipython-input-25-538f91b3987a> in <module>
48 # Let's look at one specific event entry
49 ENTRY = 2
---> 50 image2d, label2d = show_event(ENTRY)
<ipython-input-25-538f91b3987a> in show_event(entry)
26
27 # Let's grab a specific projection (1st one)
---> 28 image2d = larcv.as_ndarray(chain_image2d.image2d_data_branch.as_vector().front())
29 label2d = larcv.as_ndarray(chain_label2d.image2d_segment_branch.as_vector().front())
30
TypeError: requested class 'larcv' does not exist
Which can be reduced a little bit to the following print:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-27-88206382776f> in <module>
49 # Let's look at one specific event entry
50 ENTRY = 2
---> 51 image2d, label2d = show_event(ENTRY)
<ipython-input-27-88206382776f> in show_event(entry)
25 chain_image2d.GetEntry(entry)
26
---> 27 print(chain_image2d.image2d_data_branch)
28 # Let's grab a specific projection (1st one)
29 image2d = larcv.as_ndarray(chain_image2d.image2d_data_branch.as_vector().front())
TypeError: requested class 'larcv' does not exist
And it seems to be because of some wrong API.
Metadata
Metadata
Assignees
Labels
No labels