Skip to content

Commit

Permalink
MNT #689
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Oct 11, 2019
1 parent 859529f commit 5951884
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions manual/source/examples/h5py/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ chapter except that the names will be different, as shown below:
.. literalinclude:: input.dat
:tab-width: 4
:linenos:
:language: guess
:language: text

Writing the simplest data using ``h5py``
########################################
Expand Down Expand Up @@ -149,7 +149,7 @@ corrupt the file when the program quits.
.. literalinclude:: BasicWriter.py
:tab-width: 4
:linenos:
:language: guess
:language: python

.. _Example-H5py-Reading:

Expand Down Expand Up @@ -178,7 +178,7 @@ extracting other useful stuff from the file.
.. literalinclude:: BasicReader.py
:tab-width: 4
:linenos:
:language: guess
:language: python

Output from ``BasicReader.py`` is shown next.

Expand Down Expand Up @@ -335,7 +335,7 @@ to write a NeXus-compliant HDF5 file with links to data in other HDF5 files.
.. literalinclude:: externalExample.py
:tab-width: 4
:linenos:
:language: guess
:language: python


downloads
Expand Down
8 changes: 4 additions & 4 deletions manual/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ A NeXus binary RPM (nexus-\*.i386.rpm) contains ready compiled NeXus libraries w
source RPM (nexus-\*.src.rpm) needs to be compiled into a binary RPM before it can be
installed. In general, a binary RPM is installed using the command

.. code-block:: guess
.. code-block:: bash
rpm -Uvh file.i386.rpm
or, to change installation location from the default (e.g. /usr/local) area, using

.. code-block:: guess
.. code-block:: bash
rpm -Uvh --prefix /alternative/directory file.i386.rpm
Expand All @@ -62,7 +62,7 @@ than i386) or the binary RPM requires libraries (e.g. HDF4) that you do not have
instead rebuild a source RPM (.src.rpm) to generate the correct binary RPM for you machine.
Download the source RPM file and then run

.. code-block:: guess
.. code-block:: bash
rpmbuild --rebuild file.src.rpm
Expand All @@ -74,7 +74,7 @@ area turns out not to be big enough to compile the package.

If you are using Fedora, then you can install all the dependencies by typing

.. code-block:: guess
.. code-block:: bash
yum install hdf hdf-devel hdf5 hdf5-devel mxml mxml-devel
Expand Down
4 changes: 2 additions & 2 deletions manual/source/introduction-napi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ created in the :ref:`example above <fig.ex-c-write>`.
.. literalinclude:: examples/ex-c-read.c
:tab-width: 4
:linenos:
:language: guess
:language: c

.. _Introduction-HowToBrowse:

Expand All @@ -171,7 +171,7 @@ is an example session of :index:`nxbrowse`
.. literalinclude:: examples/ex-unix-using-nxbrowse.txt
:tab-width: 4
:linenos:
:language: guess
:language: text

.. _fig.using.nxbrowse:

Expand Down
6 changes: 3 additions & 3 deletions manual/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ a short Python program and the *h5py* package:
.. literalinclude:: examples/verysimple.py
:tab-width: 4
:linenos:
:language: guess
:language: python

.. _Introduction-DataStorageObjects:

Expand Down Expand Up @@ -377,7 +377,7 @@ the simple NeXus file shown above.
.. literalinclude:: examples/verysimple.nxdl.xml
:tab-width: 4
:linenos:
:language: guess
:language: xml

Complete examples of reading and writing NeXus data files are
provided :ref:`later <Examples>`.
Expand Down Expand Up @@ -418,7 +418,7 @@ would contain lines similar to the following:
.. literalinclude:: examples/ex-simple.c
:tab-width: 4
:linenos:
:language: guess
:language: c

In this example, the program requests the value of the data that has
the label ``wavelength``, storing the result in the variable lambda.
Expand Down

0 comments on commit 5951884

Please sign in to comment.