<commit_before>"""Classes for storing and processing experimental photocurrent data"""

import warnings
import copy

import numpy as np
import scipy.io as sio # Use for Matlab files < v7.3
from lmfit import Parameters, minimize, fit_report #*

from pyrho.utilities import * # For times2cycles and cycles2times, expDecay, findPlateauCurrent
from pyrho.parameters import tFromOff
from pyrho.config import * #verbose, colours, styles
from pyrho import config

# See also python electrophysiology modules
# Neo: http://neuralensemble.org/neo/
# G-Node: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3942789/ (uses Neo and odML)
# Stimfit: http://journal.frontiersin.org/Journal/10.3389/fninf.2014.00016/full
# fit_neuron: http://pythonhosted.org/fit_neuron/tutorial_easy.html


# import h5py
# f = h5py.File('myfile.hdf5','r')

# from StringIO import StringIO   # StringIO behaves like a file object
# c = StringIO("0 1\n2 3")
# np.loadtxt(c)<commit_msg>Import pyplot and remove unused import<commit_after>"""Classes for storing and processing experimental photocurrent data"""

import warnings
import copy

import numpy as np
import scipy.io as sio # Use for Matlab files < v7.3
from lmfit import Parameters, minimize, fit_report #*
import matplotlib.pyplot as plt

from pyrho.utilities import * # For times2cycles and cycles2times, expDecay, findPlateauCurrent
#from pyrho.parameters import tFromOff
from pyrho.config import * #verbose, colours, styles
from pyrho import config

# See also python electrophysiology modules
# Neo: http://neuralensemble.org/neo/
# G-Node: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3942789/ (uses Neo and odML)
# Stimfit: http://journal.frontiersin.org/Journal/10.3389/fninf.2014.00016/full
# fit_neuron: http://pythonhosted.org/fit_neuron/tutorial_easy.html


# import h5py
# f = h5py.File('myfile.hdf5','r')

# from StringIO import StringIO   # StringIO behaves like a file object
# c = StringIO("0 1\n2 3")
# np.loadtxt(c)
{'fraction_non_alphanumeric': 0.10440122824974411, 'fraction_numerical': 0.033776867963152504, 'mean_word_length': 4.942249240121581, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2177588', 'n_tokens_mistral': 704, 'n_tokens_neox': 641, 'n_words': 188}