add issequence function to data and plot functions and examples for geometry

This commit is contained in:
2019-12-26 10:56:33 +01:00
parent 3be9e2f20f
commit 4b42d7b508
49 changed files with 2845 additions and 628 deletions

View File

@@ -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, '.-')