<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I agree. I have created an issue (<a href="https://github.com/nexpy/nexusformat/issues/32" class="">https://github.com/nexpy/nexusformat/issues/32</a>) and pushed a fix to my own repository, which works on Steve’s file. We already convert size 1 arrays to scalars
 in NXfields - I’m not sure why I never applied it to attributes.
<div class=""><br class="">
</div>
<div class="">Once I’ve done a little more testing, I will release a new version of ‘nexusformat’.
<div class=""><br class="">
</div>
<div class="">Ray<br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 14, 2017, at 10:59 AM, Pete Jemian <<a href="mailto:jemian@anl.gov" class="">jemian@anl.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class=""><br class="">
On 6/14/2017 10:47 AM, Osborn, Raymond wrote:<br class="">
<blockquote type="cite" class="">I can probably fix this by converting all shape (1,) arrays to scalars.<br class="">
</blockquote>
<br class="">
Ray: I recommend you make this accommodation.  The structure is valid by the NeXus Schema while it is obviously not written by the NAPI.  In my punx code (also in Python), this is done already.  Here's the punx (v0.1.8) analysis of 633777.nxs (validating with
 v3.2 of the NeXus definitions):<br class="">
<br class="">
validation:<br class="">
address<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"></span>/entry1/default/ic1monitor@target<br class="">
validation<span class="Apple-tab-span" style="white-space:pre"> </span>attribute data type<br class="">
status<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"></span>NOTE<br class="">
comment(s)<span class="Apple-tab-span" style="white-space:pre"> </span>variable length string: ['/entry1/instrument/ic1monitor/ic1monitor']<br class="">
<br class="">
structure:<br class="">
   default:NXdata<br class="">
     @NX_class = NXdata<br class="">
     ...<br class="">
     ic1monitor --> /entry1/instrument/ic1monitor/ic1monitor<br class="">
     ...<br class="">
<br class="">
which points to<br class="">
<br class="">
     ic1monitor:NXpositioner<br class="">
       @NX_class = NXpositioner<br class="">
       ic1monitor:NX_FLOAT64[10001] = [85.095857564276628, 88.283059084044368, 91.494686406350723, '...', 0.1282179930326694]<br class="">
         @local_name = ic1monitor.ic1monitor<br class="">
         @signal = 1<br class="">
         @target = /entry1/instrument/ic1monitor/ic1monitor<br class="">
<br class="">
<br class="">
<br class="">
-- <br class="">
----------------------------------------------------------<br class="">
Pete R. Jemian, Ph.D.                <<a href="mailto:jemian@anl.gov" class="">jemian@anl.gov</a>><br class="">
Beam line Controls and Data Acquisition, Group Leader<br class="">
Advanced Photon Source,   Argonne National Laboratory<br class="">
Argonne, IL  60439                   630 - 252 - 3189<br class="">
-----------------------------------------------------------<br class="">
  Education is the one thing for which people<br class="">
     are willing to pay yet not receive.<br class="">
-----------------------------------------------------------<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
NeXus mailing list<br class="">
<a href="mailto:NeXus@nexusformat.org" class="">NeXus@nexusformat.org</a><br class="">
http://lists.nexusformat.org/mailman/listinfo/nexus<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
-- <br class="">
Ray Osborn, Senior Scientist<br class="">
Materials Science Division<br class="">
Argonne National Laboratory<br class="">
Argonne, IL 60439, USA<br class="">
Phone: +1 (630) 252-9011<br class="">
Email: <a href="mailto:ROsborn@anl.gov" class="">ROsborn@anl.gov</a></div>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>