Skip to content

Commit

Permalink
address Jim's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed Apr 29, 2022
1 parent 1ae5c42 commit 1dfaab3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/awkward/_v2/_connect/rdataframe/to_rdataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

compiler = ROOT.gInterpreter.Declare
compiler_lock = threading.Lock()
compiler(
"""
#include <Python.h>
"""
)


def compile(source_code):
Expand Down Expand Up @@ -144,8 +149,6 @@ def data_frame(self, layouts):

if not hasattr(ROOT, array_data_source):
cpp_code = f"""
#include <Python.h>
namespace awkward {{
class {array_data_source} final
Expand Down Expand Up @@ -258,5 +261,4 @@ class {array_data_source} final
(self.data_ptrs_list),
)

rdf.lookups = self.lookups
return rdf

0 comments on commit 1dfaab3

Please sign in to comment.