Skip to content

Commit

Permalink
maybe the toml file is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov authored Jun 19, 2024
1 parent a36e8d1 commit f1b7c3e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CondaPkg.toml
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
[pip.deps]
numpy = "<2"
scipy = ""
pymatching = ""
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["Stefan Krastanov <stefan@krastanov.org>"]
version = "0.2.1"

[deps]
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"

[compat]
Expand Down
7 changes: 7 additions & 0 deletions src/PyQDecoders.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module PyQDecoders

import CondaPkg
import PythonCall

const sp = PythonCall.pynew()
Expand All @@ -9,6 +11,11 @@ const ldpc = PythonCall.pynew()
const ldpccodes = PythonCall.pynew()

function __init__()
CondaPkg.add_pip("numpy"; version="<2")
CondaPkg.add_pip("scipy")
CondaPkg.add_pip("ldpc")
CondaPkg.add_pip("pymatching")

PythonCall.pycopy!(sp, PythonCall.pyimport("scipy"))
PythonCall.pycopy!(sps, PythonCall.pyimport("scipy.sparse"))
PythonCall.pycopy!(np, PythonCall.pyimport("numpy"))
Expand Down

0 comments on commit f1b7c3e

Please sign in to comment.