daob / automtmm Goto Github PK
View Code? Open in Web Editor NEWA program for the automatic analysis of MTMM data
Home Page: http://oberski.surveymethodology.eu/
A program for the automatic analysis of MTMM data
Home Page: http://oberski.surveymethodology.eu/
Searching /home/daob/work/automtmm/tests/ess-round3/SK/IMSMETN...
Found r3imsmetnSK.LS8.
Running LISREL for r3imsmetnSK.LS8,Command is "wine Lisrel85.exe /home/daob/work/automtmm/tests/ess-round3/SK/IMSMETN/r3imsmetnSK.LS8 OUT".
LISREL terminated normally.
Calculating standardized matrices for r3imsmetnSK.LS8...
Reading matrix BE...BE is a FUll matrix.
Reading matrix AL...AL is a VEctor.
Reading matrix GA...GA is a FUll matrix.
Reading matrix PH...PH is a SYmmetric matrix.
Reading matrix PS...PS is a SYmmetric matrix.
Reading matrix KA...KA is a VEctor.
Reading matrix TX...TX is a VEctor.
Reading matrix TY...TY is a VEctor.
Reading matrix TD...TD is a DIagonal matrix.
Reading matrix TE...TE is a SYmmetric matrix.
Reading matrix LX...LX is a FUll matrix.
Reading matrix LY...LY is a FUll matrix.
LinAlgError Traceback (most recent call last)
/home/daob/work/automtmm/ in ()
/home/daob/work/automtmm/walk_and_run.py in walk_and_run(top_dir, tempdir, action)
158 break
159 if solution_obtained(os.path.join(tempdir, 'OUT')):
--> 160 smats = lisfile.standardize_matrices()
161 for igrp in range(len(smats)):
162 for matname, stanmat in smats[igrp].iteritems():
/home/daob/work/automtmm/parse_lisrel.pyc in standardize_matrices(self, path)
262 C = np.matrix(np.sqrt(np.diag(np.diag(Eee))))
263
--> 264 ga_s = C.I * ga * np.sqrt(np.diag(np.diag(ph)))
265 ly_s = np.sqrt(np.diag(1/np.diag(Eyy))) * ly * C
266
/usr/lib/python2.6/dist-packages/numpy/core/defmatrix.pyc in getI(self)
513 else:
514 from numpy.dual import pinv as func
--> 515 return asmatrix(func(self))
516
517 def getA(self):
/usr/lib/python2.6/dist-packages/numpy/linalg/linalg.pyc in inv(a)
348 """
349 a, wrap = _makearray(a)
--> 350 return wrap(solve(a, identity(a.shape[0], dtype=a.dtype)))
351
352
/usr/lib/python2.6/dist-packages/numpy/linalg/linalg.pyc in solve(a, b)
247 results = lapack_routine(n_eq, n_rhs, a, n_eq, pivots, b, n_eq, 0)
248 if results['info'] > 0:
--> 249 raise LinAlgError, 'Singular matrix'
250 if one_eq:
251 return wrap(b.ravel().astype(result_t))
LinAlgError: Singular matrix
After walk_and_run, the following fail was obtained from unit tests:
Traceback (most recent call last):
File "tests/test_parse_lisrel.py", line 156, in test_get_matrices
mats = self.test_input.get_matrices(path = 'temp')
File "/home/daob/work/automtmm/parse_lisrel.py", line 191, in get_matrices
(order[1], order[0])))
File "/usr/lib/python2.6/dist-packages/numpy/core/fromnumeric.py", line 145, in reshape
return reshape(newshape, order=order)
ValueError: total size of new array must be unchanged
os.system is now used where subprocess 'should' be used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.