Paul Melis

Results 156 comments of Paul Melis

> SimpleWeightedEdge will require a weight but only src and dst are passed > > https://github.com/JuliaGraphs/LightGraphs.jl/blob/ca41a2e8f6962f1a232637a446bd326676559a92/src/shortestpaths/astar.jl#L14 > Instead of using graph's EdgeType, use a SimpleEdge > > https://github.com/JuliaGraphs/LightGraphs.jl/blob/2a644c2b15b444e7f32f73021ec276aa9fc8ba30/src/SimpleGraphs/simpleedge.jl#L6 > instead....

> After every command that changes the board state, (starting a new game, playing a move, undoing a move) the engine returns the current state of the game as a...

Okay, then maybe the Ctrl+C doesn't work on Linux. As I tried that earlier, but it simply keeps computing.

On Arch Linux, with 1.7.1 I get (based on your earlier examples): ``` melis@juggle 16:02:~/$ cat array.jl # https://github.com/JuliaLang/julia/issues/42566#issuecomment-1028603528 function info(s) gc_live = Base.format_bytes(Base.gc_live_bytes()) pid_mem = Base.format_bytes(parse(Int, strip(read(`ps -o rss=...

> [#42566 (comment)](https://github.com/JuliaLang/julia/issues/42566#issuecomment-1028587020) was on ubuntu (just clarified in the comment) Okay, but I guess that was with much more extensive code than the simple array allocation above? And possibly...

> I would also find this very helpful to identify the correct page in search results Seconded

For completeness sake here proof that PyArrow can read the file when not using dictionary-encoding for the `rsid` column: ``` >>> r = pyarrow.ipc.open_file(open('partitions2.arrow','rb')) >>> r.num_record_batches 2 >>> b =...

Ah, trying to write the same set of dictionary-encoded batches with PyArrow results in the following: ``` $ cat p2.py import pyarrow as pa def mkbatch(rsid, negate): d = pa.array([rsid])...

Just stumbled upon this myself. See https://github.com/JuliaPy/PyCall.jl#arrays-and-pyarray, seems you need to use a specific type on the Julia side: > From Python to Julia > > Multidimensional NumPy arrays (ndarray)...

There's a workaround by passing a pointer and length. But it's a bit suboptimal in having to specify the element type (although there's probably a clever Julia way of improving...