<commit_before># coding: utf-8

""" Test reading SCF files """

from __future__ import absolute_import, unicode_literals, division, print_function

__author__ = "adrn <<EMAIL>>"

# Standard library
import os, sys
import logging

# Third-party
import numpy as np
import astropy.units as u

# Project
from ..scf import SCFReader
from ...units import usys

def test_simple():
    scf = SCFReader('/Users/adrian/projects/stream-team/tests/M2.5e+08')

def test_snap():
    scf = SCFReader('/Users/adrian/projects/stream-team/tests/M2.5e+08')
    d1 = scf.read_snap('SNAP113')
    print(d1.meta)

    d1 = scf.read_snap('SNAP113', units=usys)
    print(d1.meta)<commit_msg>update test path<commit_after># coding: utf-8

""" Test reading SCF files """

from __future__ import absolute_import, unicode_literals, division, print_function

__author__ = "adrn <<EMAIL>>"

# Standard library
import os, sys
import logging

# Third-party
import numpy as np
import astropy.units as u

# Project
from ..scf import SCFReader
from ...units import galactic

def test_simple():
    scf = SCFReader('/Users/adrian/projects/streamteam/tests/M2.5e+08')

def test_snap():
    scf = SCFReader('/Users/adrian/projects/streamteam/tests/M2.5e+08')
    d1 = scf.read_snap('SNAP113')
    print(d1.meta)

    d1 = scf.read_snap('SNAP113', units=galactic)
    print(d1.meta)
{'fraction_non_alphanumeric': 0.12807148175725985, 'fraction_numerical': 0.028294862248696945, 'mean_word_length': 4.270588235294118, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3605620', 'n_tokens_mistral': 495, 'n_tokens_neox': 476, 'n_words': 115}