Comments (2)
I probably solved it. The type-missmatch originate from the last value in the source-array:
print(source[0])
[(667, 1787, 0, 23, 28480., 125.88945269, 316.30610993, 21.2107557 , 0, b'universe')]
If you call a savetxt without a type parameter (fmt) you get the missmatch error because of the non-number value (%.18e = e or E : scientific notation with e or E). To solve it you can just overwrite the default save types for np.savetxt like:
source = ws.source('cells');
header = ', '.join([h[0] for h in source.dtype.names]);
fmt = '%.18e,%.18e,%.18e,%.18e,%.18e,%.18e,%.18e,%.18e,%.18e,%s';
np.savetxt(ws.filename('cells', extension='csv'), source[:], fmt=fmt, header=header, delimiter=',')
from clearmap2.
Thanks for spotting this error. This is fixed in the new script in a slightly more elegant way !
from clearmap2.
Related Issues (20)
- Cell alignment section - file not found error HOT 1
- Cannot find name for type 'elastix_resampled_to_auto'! HOT 1
- How to generate intensity profile? HOT 2
- Alignment of warped atlas to autofluorescence looks correct but overlay of raw atlas with transformed cells appears wrong. HOT 1
- TubeMap: "IndexError: list index out of range" while runnin the cell of Rigid z-alignment HOT 1
- Stitching parameters for persistent duplications
- TubeMap Create a test data
- Spyder 5.2.2 incompatible to Anaconda 3 HOT 1
- TypeError: key must be an int, slice, or sequence HOT 5
- Bug: inverse transform HOT 1
- registration troubleshooting
- Cell Annotation Didn't Work... HOT 2
- clearmap results ID different than Allen Region ID HOT 1
- Annotated_counts table counts area and their subdivision differently HOT 1
- Adding CCFv3 annotation requires updating the "No label" values
- Problem Plotting 3d Mesh HOT 2
- Resampling IndexError: tuple index out of range HOT 4
- Question about the unit of vasculature radius HOT 1
- Duplicate maxima coordinates detected with different 'source' and 'size' measurements
- Elastiz error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clearmap2.