Skip to content

Commit

Permalink
return trajectory from nextframe! functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Mar 22, 2024
1 parent b7b0769 commit 52905fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/trajectory_formats/ChemFiles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function nextframe!(trajectory::ChemFile{T}) where {T}
)
end

return trajectory
end

# Returns the unitcell of the current frame, as a 3x3 matrix (static in this case)
Expand Down
2 changes: 1 addition & 1 deletion src/trajectory_formats/NamdDCD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function nextframe!(trajectory::NamdDCD{T}) where {T}
)
end

return nothing
return trajectory
end

#
Expand Down
1 change: 1 addition & 0 deletions src/trajectory_formats/PDBTraj.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function nextframe!(trajectory::PDBTraj{T}) where {T<:AbstractVector}
end
record = readline(st)
end
return trajectory
end

#
Expand Down

0 comments on commit 52905fc

Please sign in to comment.