Skip to content

Commit

Permalink
Add basic owens wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Mar 14, 2024
1 parent 5076e9d commit 61eca08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ dependencies:
- pyDOE3
- pygments
- pyhams
- pyjuliacall
- python-json-logger
- pyzmq
- qdldl-python
Expand Down
12 changes: 12 additions & 0 deletions weis/owens/owens_wrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# juliaup update
# pip --trusted-host pypi.org --trusted-host files.pythonhosted.org install juliacall
from juliacall import Main as jl
from juliacall import Pkg as jlPkg

OWENS_directory = '/Users/dzalkind/Tools/Cross_Flow/OWENS.jl'

jlPkg.activate(OWENS_directory) # relative path to the folder where `MyPack/Project.toml` should be used here

jl.seval("using OWENS")

testdata = jl.OWENS.runOWENS(jl.OWENS.MasterInput("./sampleOWENS.yml"),"./").to_numpy()

0 comments on commit 61eca08

Please sign in to comment.