JuliaPy / JuliaPy/pyjulia

World Age Issues with TensorCast in PyJulia

Open
#502 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
893
Forks
101
PR merge metrics
No merged PRs in 30d

Description

I am getting a world age bug when running TensorCast in JuliaPy, but not when using it normally.

If I run an example function such as

```
function testfunc()
V = [10,20,30]
M = collect(reshape(1:12, 3,4))
@cast A[j,i] := M[i,j] + 10 * V[i]
return A
end
```
it works when I call it in Julia via
```
A = testfunc()
```
However, when I run the Python script
```
from julia.api import Julia
jl = Julia(compiled_modules=False)
from julia import Main
Main.include("testfunction.jl")
from julia.Main import testfunc

A = testfunc()
```

I get the error

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.