Skip to content

Commit

Permalink
move import to top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jun 21, 2019
1 parent bfb005d commit 53c7aee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aiida_lammps/common/raw_parsers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import mmap
import re
import numpy as np
import six
Expand Down Expand Up @@ -72,7 +73,6 @@ def parse_dynaphopy_output(file):

def read_lammps_forces(file_name):

import mmap
# Time in picoseconds
# Coordinates in Angstroms

Expand Down Expand Up @@ -281,11 +281,12 @@ def read_lammps_trajectory_txt(data_txt,
def read_lammps_trajectory(file_name,
limit_number_steps=100000000,
initial_cut=1, end_cut=None,
timestep=1, log_warning_func=six.print_):
timestep=1, log_warning_func=None):
""" should be used with:
`dump name all custom n element x y z q`, where q is optional
"""
import mmap
if log_warning_func is None:
log_warning_func = six.print_
# Time in picoseconds
# Coordinates in Angstroms

Expand Down Expand Up @@ -409,7 +410,6 @@ def read_lammps_trajectory(file_name,

def read_lammps_positions_and_forces(file_name):

import mmap
# Time in picoseconds
# Coordinates in Angstroms

Expand Down

0 comments on commit 53c7aee

Please sign in to comment.