Custom Query (2425 matches)
Results (22 - 24 of 2425)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#2419 | fixed | [tableio/rootwriter] Root file "master tree" comes out empty | Katherine Rawlins | |
Description |
"rootwriter" master tree is empty (although individual branches seem to be filled). The master tree also cannot be used to access the branches through SetBranchAddress?. How to reproduce it: run the script "book_data.py" in rootwriter/resources/examples, like this: ./book_data.py myoutput.root ${I3_TESTDATA}/sim/Level2_IC86.2011_corsika.010281.001664.00.i3.bz2 Then, open up the root file with "root myoutput.root". Test 1: FullTree?->GetEntries?() <--- gives zero, whereas is should be 2229, which is the number of entries in the other two branches (SPEFit2 and SPEFitSimple). Test 2: double x FullTree?->SetBranchAddress?("SPEFit2.x", &x) FullTree?->GetEntry?(0) <--- supposed to fill the variable "x" with the first value in the branch x <--- gives still zero, instead of a nice x-coordinate from the branch Strangely, doing this: FullTree?->Scan("SPEFit2.x") <--- correctly spits out a bunch of x-coordiantes! Problem appears in combo_stable, compiled with either py2_v3.1.1 and py3_v4.1.0. Problem does not appear in combo_V00-00-01. |
|||
#2418 | fixed | AxialCylinder and Cylinder cannot be added to a frame nor the frame being pushed into a i3 file | Kevin Meagher | Frederik Lauber |
Description |
Hello, trying to add a Cylinder or Axial Cylinder to a frame gives with the current trunk this: ArgumentError: Python argument types in I3Frame.Put(I3Frame, str, Cylinder) did not match C++ signature: Put(I3Frame {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::shared_ptr<I3FrameObject const>, I3Frame::Stream) Put(I3Frame {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::shared_ptr<I3FrameObject const>) As of https://code.icecube.wisc.edu/projects/icecube/changeset//171479/IceCube thi sis afaik supposed to work but JVS suggested that some of the pybindings might not be in order yet. Adding a + + class_<Surface, SurfacePtr, bases<I3FrameObject>, boost::noncopyable>("Surface", no_init); + + register_pointer_conversions<Surface>(); to phys-services/private/pybindings/Surface.cxx will make it possible to ad a Cylinder or AxialCylinder? to a frame but this frame cannot be pushed into an i3 file due to: In [18]: out.push(p) FATAL (icetray): caught "unregistered void cast N10I3Surfaces13AxialCylinderE<-13I3FrameObject" while writing frame object "Axial_0500" of type "I3Surfaces::AxialCylinder" (I3Frame.cxx:593 in void I3Frame::save(OStreamT&, const std::vector<std::__cxx11::basic_string<char> >&) const [with OStreamT = boost::iostreams::filtering_stream<boost::iostreams::output>]) --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-18-87181845d308> in <module> ----> 1 out.push(p) RuntimeError: caught "unregistered void cast N10I3Surfaces13AxialCylinderE<-13I3FrameObject" while writing frame object "Axial_0500" of type "I3Surfaces::AxialCylinder" (in void I3Frame::save(OStreamT&, const std::vector<std::__cxx11::basic_string<char> >&) const [with OStreamT = boost::iostreams::filtering_stream<boost::iostreams::output>]) As I am not that familiar with the C++ side of things, I am at a total loss how to fix that, hence this ticket. As the initial commit to add support was done by KJM, will add him as the owner of this, hope this is okay. |
|||
#2416 | worksforme | [cmake] Python detection and modern cmake | Nathan Whitehorn | Alex Olivas |
Description |
With cmake 3.16.2 (built from source) Python3 isn't found. It's supposed to prefer Python3, but something fails and it defaults to Python2. https://cmake.org/cmake/help/v3.16/module/FindPython.html -- python -- Found Python: /usr/bin/python2.7 (found version "2.7.17") found components: Interpreter Development NumPy -- + version: 2.7.17 -- + binary: /usr/bin/python2.7 -- + includes: /usr/include/python2.7 -- + libs: /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so -- + numpy: /usr/lib/python2.7/dist-packages/numpy/core/include -- + scipy: FOUND -- - WARNING: Python<3.0 detected If I force Python3 detection ("find_package(Python3 ...)") it can't find numpy. Turns out I can't install the dev package anyway on 18.04. $ aptitude show python3-numpy-dev No candidate version found for python3-numpy-dev Package: python3-numpy-dev State: not a real package Provided by: python3-numpy (1:1.13.3-2ubuntu1) -- python -- Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version "3.7.5") -- + version: -- + binary: -- + includes: -- + libs: CMake Error at cmake/tools/python.cmake:61 (if): if given arguments: "VERSION_LESS" "2.6" Unknown arguments specified Note, I get a similar failure if I remove NumPy? as a dependency. If I only require the Interpreter and Development none of the output variables are set: (python3.7-dev and python3.6-dev are both installed on this machine) -- python -- Found Python3: /usr/bin/python3.7 (found version "3.7.5") found components: Interpreter Development -- + version: -- + binary: -- + includes: -- + libs: (Same error if I remove Development and Interpreter, btw) This is pretty much where I moved on. I haven't searched kitware archives for any discussion of the topic. It's possible this is fixed in later releases of cmake, but when I noticed I was building with cmake 3.16 (so I could get c++20 support) I reverted back to stock cmake (3.10), so I could push forward with vanilla combo work. |