Skip to content

Commit

Permalink
Merge pull request #675 from nexusformat/674-verysimple
Browse files Browse the repository at this point in the history
long_name values swapped in verysimple example
  • Loading branch information
prjemian authored Aug 21, 2019
2 parents fd3d7b1 + 657b751 commit 8fd7719
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified manual/source/examples/verysimple.nx5
Binary file not shown.
4 changes: 2 additions & 2 deletions manual/source/examples/verysimple.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

tth = nxdata.create_dataset('two_theta', data=angle)
tth.attrs['units'] = 'degrees'
tth.attrs['long_name'] = 'photodiode counts'
tth.attrs['long_name'] = 'two_theta (degrees)'

counts = nxdata.create_dataset('counts', data=diode)
counts.attrs['units'] = 'counts'
counts.attrs['long_name'] = 'two_theta (degrees)'
counts.attrs['long_name'] = 'photodiode counts'

f.close()
4 changes: 2 additions & 2 deletions manual/source/examples/verysimple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ verysimple.nx5 : NeXus data file
@two_theta_indices = [0]
counts:int32[15] = [1193, 4474, 53220, '...', 1000]
@units = counts
@long_name = two_theta (degrees)
@long_name = photodiode counts
two_theta:float64[15] = [18.9094, 18.9096, '...', 18.9122]
@units = degrees
@long_name = photodiode counts
@long_name = two_theta (degrees)

0 comments on commit 8fd7719

Please sign in to comment.