<commit_before># -*- coding: utf-8 -*-
#
from __future__ import absolute_import, division, print_function

import nose
from nose.tools import *
from pkg_resources import resource_filename
from sknano.io import DUMPData, DUMPReader, DUMPWriter


def test_reader():
    datafile = resource_filename('sknano', 'data/lammpstrj/dump.peptide')
    reader = DUMPReader(datafile)


def test_dumpio():
    datafile = resource_filename('sknano', 'data/lammpstrj/dump.peptide')
    dump = DUMPData(datafile)


if __name__ == '__main__':
    nose.runmodule()<commit_msg>updating test module for lammps dump format testing<commit_after># -*- coding: utf-8 -*-
#
from __future__ import absolute_import, division, print_function

import nose
from nose.tools import *
from pkg_resources import resource_filename
from sknano.io import DUMPData, DUMPReader, DUMPWriter


#def test_reader():
#    dumpfile = resource_filename('sknano', 'data/lammpstrj/dump.peptide')
#    dumpdata = DUMPReader(dumpfile)
#    print('dumpdata.nsnaps: {}'.format(dumpdata.nsnaps))


def test_dump():
    #dumpfile = resource_filename('sknano', 'data/lammpstrj/dump.peptide')
    dumpfile = resource_filename('sknano', 'data/lammpstrj/1010+ion.dump')
    dumpdata = DUMPData(dumpfile)
    #print('dumpdata.nsnaps: {}'.format(dumpdata.nsnaps))


if __name__ == '__main__':
    nose.runmodule()
{'fraction_non_alphanumeric': 0.12269031781226904, 'fraction_numerical': 0.004434589800443459, 'mean_word_length': 5.1826484018264845, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5313946', 'n_tokens_mistral': 474, 'n_tokens_neox': 453, 'n_words': 97}