Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed Sep 10, 2024
1 parent c7f928d commit 4ecdd1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/atefe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using CUDA
end

@time "loading" sim = OpenMMScript("data/atefe/mor.py", steps=10_000)
@time "loading" sim = OpenMMSimulation(py="data/atefe/mor.py", steps=10_000)

NFEATURES = 3000
NX = 1_000
Expand Down
2 changes: 2 additions & 0 deletions src/ISOKANN.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ import LinearAlgebra
import MLUtils: numobs
import Flux: cpu, gpu

export OpenMM

export pairnet
#export PDB_ACEMD, PDB_1UAO, PDB_diala_water
#export MollyLangevin, propagate, solve#, MollySDE
Expand Down
4 changes: 2 additions & 2 deletions src/simulators/openmm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ end
mmthreads(sim::OpenMMSimulation) = get(sim.constructor, :mmthreads, CUDA.has_cuda() ? "gpu" : 1)
nthreads(sim::OpenMMSimulation) = get(sim.constructor, :nthreads, CUDA.has_cuda() ? 1 : Threads.nthreads())
momenta(sim::OpenMMSimulation) = get(sim.constructor, :momenta, false)
pdbfile(sim::OpenMMSimulation) = get(sim.constructor, :pdb, () -> createpdb(sim))
pdbfile(sim::OpenMMSimulation) = get(() -> createpdb(sim), sim.constructor, :pdb)

steps(sim) = sim.steps::Int
friction(sim) = friction(sim.pysim)
Expand All @@ -133,7 +133,7 @@ function createpdb(sim)
pysim = sim.pysim
file = tempname() * ".pdb"
pdb = py"app.PDBFile"
pdb.writeFile(pysim.topology, pysim.positions, file) # TODO: fix this
pdb.writeFile(pysim.topology, PyReverseDims(reshape(getcoords(sim), 3, :)), file) # TODO: fix this
return file
end

Expand Down

0 comments on commit 4ecdd1d

Please sign in to comment.