Login  Register

Re: importing txt into python script

Posted by Mark Hiner on May 15, 2015; 4:46pm
URL: http://imagej.273.s1.nabble.com/importing-txt-into-python-script-tp5012843p5012845.html

Hi Kenton,

> Any help appreciated (eg a pointer to the right place to find it)

I'd start looking over similar StackOverflow questions[1,2] and adapting
them to your file structure.

The wiki[3] is a good resource when you're ready to add ImageJ
functionality to your script.

Best,
Mark

[1]
http://stackoverflow.com/questions/3277503/python-read-file-line-by-line-into-array
[2]
http://stackoverflow.com/questions/14676265/how-to-read-text-file-into-a-list-or-array-with-python
[3] http://imagej.net/Jython_Scripting

On Fri, May 15, 2015 at 8:08 AM, Kenton Arkill <[hidden email]>
wrote:

> Hi
> I'm a newby at python/jython. I wish to import txt files and make them
> lists of numbers so I can do things with them. my txt files are 2 columns
> and lots of rows (with header name) and tab delimited.
> Any help appreciated (eg a pointer to the right place to find it)
> Regards
> Kenton
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html