-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Documenter.jl
committed
Jun 6, 2024
1 parent
b228c36
commit 8c0f4de
Showing
84 changed files
with
5,595 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v2.2.2 | ||
v2.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v2.2.2 | ||
v2.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v2.2.2 | ||
v2.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-06-06T14:53:39","documenter_version":"1.4.1"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# | ||
# ComplexMixtures.py | ||
# | ||
# A Python module to provide an interface for the Julia ComplexMixtures.jl package. | ||
# | ||
# See: https://m3g.github.com/ComplexMixtures.jl | ||
# | ||
# Author: L. Martinez / IQ-Unicamp, 2023. | ||
# | ||
# This script is adapted to version 2.0 of ComplexMixtures.jl | ||
# | ||
import sys | ||
|
||
# | ||
# Check juliacall installation | ||
# | ||
try : | ||
print("Loading juliacall: on the first call this will install the julia executable.") | ||
from juliacall import Main as jl | ||
except : | ||
print(""" | ||
juliacall module not found. Install it with: | ||
pip install juliacall | ||
""") | ||
sys.exit() | ||
|
||
# | ||
# Install and load necessary julia packages | ||
# | ||
try : | ||
jl.seval("import ComplexMixtures as cm") | ||
jl.seval("import PDBTools as pdb") | ||
except : | ||
print("Installing the ComplexMixtures and PDBTools julia packages...") | ||
jl.Pkg.add("ComplexMixtures") | ||
jl.Pkg.add("PDBTools") | ||
jl.seval("import ComplexMixtures as cm") | ||
jl.seval("import PDBTools as pdb") | ||
|
||
# | ||
# Interfaces | ||
# | ||
|
||
# From PDBTools | ||
readPDB = jl.pdb.readPDB | ||
select = jl.pdb.select | ||
|
||
# From ComplexMixtures | ||
AtomSelection = jl.cm.AtomSelection | ||
Trajectory = jl.cm.Trajectory | ||
SoluteGroup = jl.cm.SoluteGroup | ||
SolventGroup = jl.cm.SolventGroup | ||
Options = jl.cm.Options | ||
save = jl.cm.save | ||
load = jl.cm.load | ||
write = jl.cm.write | ||
contributions = jl.cm.contributions | ||
coordination_number = jl.cm.coordination_number | ||
gr = jl.cm.gr | ||
overview = jl.cm.overview | ||
|
||
# For the possibly multi-threaded call to mddf, we need to disable the garbage collector | ||
def mddf(*args, **kwargs) : | ||
jl.GC.enable(False) | ||
result = jl.cm.mddf(*args, **kwargs) | ||
jl.GC.enable(True) | ||
return result | ||
|
||
# Covert python lists to julia arrays | ||
def list(python_list) : | ||
return jl.map(jl.identity, python_list) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.