Skip to content

Commit

Permalink
move filter semicolon position
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed May 3, 2024
1 parent 117ce79 commit cb52e41
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Box.jl
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ particles do not see images of each other.
## Examples
```jldoctest filter = r"\\d+" => ""
```jldoctest ;filter = r"\\d+" => ""
julia> using CellListMap, PDBTools
julia> x = coor(readPDB(CellListMap.argon_pdb_file));
Expand Down
10 changes: 5 additions & 5 deletions src/ParticleSystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ the particles that are within the cutoff:
## Single set of particles
```jldoctest filter = r"(\\d*)\\.(\\d{4})\\d+" => s"\\1.\\2"
```jldoctest ;filter = r"(\\d*)\\.(\\d)\\d+" => s"\\1.\\2"
julia> using CellListMap
julia> using PDBTools: readPDB, coor
Expand All @@ -81,11 +81,11 @@ julia> sys = ParticleSystem(
);
julia> map_pairwise!((x,y,i,j,d2,output) -> output += d2, sys)
43774.54367600002
43774.54367600001
```
## Two sets of particles
```jldoctest filter = r"(\\d*)\\.(\\d{4})\\d+" => s"\\1.\\2"
```jldoctest ;filter = r"(\\d*)\\.(\\d{4})\\d+" => s"\\1.\\2"
julia> using CellListMap, PDBTools
julia> xpositions = coor(readPDB(CellListMap.argon_pdb_file))[1:50];
Expand Down Expand Up @@ -562,7 +562,7 @@ to avoid spurious results.
In this example we show how to obtain the minimum distance among argon atoms
in a simulation box.
```jldoctest filter = r"(\\d*)\\.(\\d{4})\\d+" => s"\\1.\\2"
```jldoctest ;filter = r"(\\d*)\\.(\\d{4})\\d+" => s"\\1.\\2"
julia> using CellListMap, PDBTools
julia> positions = coor(readPDB(CellListMap.argon_pdb_file));
Expand Down Expand Up @@ -707,7 +707,7 @@ where the size of the simulation box changes during the simulation.
# Example
```jldoctest filter = r"batches.*" => ""
```jldoctest ;filter = r"batches.*" => ""
julia> using CellListMap, StaticArrays, PDBTools
julia> xpositions = coor(readPDB(CellListMap.argon_pdb_file));
Expand Down
8 changes: 4 additions & 4 deletions src/neighborlists.jl
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ matrix, periodic boundary conditions are considered).
Compute the neighborlist between within a set Argon atoms, considering the system
non-periodic (do not provide a `unitcell`):
```jldoctest filter = r"(\\d*)\\.(\\d{4})\\d+" => s""
```jldoctest ;filter = r"(\\d*)\\.(\\d{4})\\d+" => s""
julia> using CellListMap, PDBTools
julia> x = coor(readPDB(CellListMap.argon_pdb_file));
Expand Down Expand Up @@ -529,7 +529,7 @@ julia> neighborlist(x, 8.0; parallel=false)
And now, considering the system periodic:
```jldoctest filter = r"(\\d*)\\.(\\d{4})\\d+" => s""
```jldoctest ;filter = r"(\\d*)\\.(\\d{4})\\d+" => s""
julia> using CellListMap, PDBTools
julia> x = coor(readPDB(CellListMap.argon_pdb_file));
Expand Down Expand Up @@ -600,7 +600,7 @@ the cost of the construction of the cell list.
Compute the neighborlist between two sets of Argon atoms, considering the system
non-periodic (do not provide a `unitcell`):
```jldoctest filter = r"(\\d*)\\.(\\d{4})\\d+" => s""
```jldoctest ;filter = r"(\\d*)\\.(\\d{4})\\d+" => s""
julia> using CellListMap, PDBTools
julia> x = coor(readPDB(CellListMap.argon_pdb_file, "index <= 50"));
Expand Down Expand Up @@ -633,7 +633,7 @@ julia> CellListMap.neighborlist(x, y, 8.0; parallel=false)
Now, considering the system periodic:
```jldoctest filter = r"(\\d*)\\.(\\d{4})\\d+" => s""
```jldoctest ;filter = r"(\\d*)\\.(\\d{4})\\d+" => s""
julia> using CellListMap, PDBTools
julia> x = coor(readPDB(CellListMap.argon_pdb_file, "index <= 50"));
Expand Down

0 comments on commit cb52e41

Please sign in to comment.