Bruno Melli
Bruno Melli
Does pyart support gridding of airborn data? I have a cfradial file that produces the same **TypeError: Only length-1 arrays can be converted to Python scalars** when I call pyart.map.grid_from_radars....
After adding some trace, the read thread doesn't die. What happens is that eventually the @on_position_change Proc never comes back after the yield statement. @on_position_change = Proc.new { |device, obj_ptr,...
Yuck! It looks like it is related to garbage collection. If I GC.disable, I can keep moving the motor back and forth as often as I want and the on_position_change...
Yes, I tried that and that's when I got a core dump. If I do the GC.enable later, (after a few times the callback is called) then sometimes I get...
Looks like I found a solution, (or got lucky and masked the error) This is what my on_position_change looks like, working on the assumption that the issue was garbage collection...
Forget my last question. This pretty much answers it: def register(&blk) $foo = Proc.new { yield } end register { puts "I'm in here" } $foo.call