<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="IT" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi!</p>
<p class="MsoNormal">Hope I am on the right section. However I have a problem with a function on openslide-python 1.1.1 on Windows 10 64 bit, Anaconda Python 3.5. I write below the error that I am getting:<br>
<br>
File "C:/Users/Francesco/PycharmProjects/tesi/Training/coorGenerator.py", line 22, in _GetPatch</p>
<p class="MsoNormal"> tile = np.array(TIFFImg.read_region((start_w, start_h), workingLevel, windowShape))</p>
<p class="MsoNormal"> File "C:\Users\Francesco\Anaconda3\envs\py35\lib\site-packages\openslide\__init__.py", line 223, in read_region</p>
<p class="MsoNormal"> level, size[0], size[1])</p>
<p class="MsoNormal"> File "C:\Users\Francesco\Anaconda3\envs\py35\lib\site-packages\openslide\lowlevel.py", line 260, in read_region</p>
<p class="MsoNormal"> buf = (w * h * float(c_uint32))()</p>
<p class="MsoNormal">TypeError: float() argument must be a string or a number, not '_ctypes.PyCSimpleType'<br>
<br>
The fact is that, in the last row, w and h are float (I printed them for debugging), but c_uint32 is not and I am getting that error. What should I do about it? Every system PATH is set and every library in my file is correctly loaded.
<br>
<br>
Kind regards,<br>
Francesco</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>