add issequence function to data and plot functions and examples for geometry
This commit is contained in:
@@ -13,9 +13,9 @@ import unittest
|
||||
import os
|
||||
import sys
|
||||
from pylab import array, argmax, subplot, plot, title, xlim, show, gradient, linspace
|
||||
sys.path.insert(0, os.path.abspath('../pylib'))
|
||||
from data import data_read
|
||||
from numerical.fit import gauss_fit
|
||||
sys.path.insert(0, os.path.abspath('..'))
|
||||
from pylib.data import read
|
||||
from pylib.numerical.fit import gauss_fit
|
||||
|
||||
|
||||
class TestFit(unittest.TestCase):
|
||||
@@ -23,7 +23,7 @@ class TestFit(unittest.TestCase):
|
||||
def test_gauss(self):
|
||||
"""test function"""
|
||||
file_name = "test_fit.dat"
|
||||
x, y = data_read(file_name, 3, 2)
|
||||
x, y = read(file_name, 3, 2)
|
||||
|
||||
subplot(2, 2, 1)
|
||||
plot(x, y, '.-')
|
||||
|
||||
Reference in New Issue
Block a user