scuq 0.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
scuq-0.9/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ This module is free software: you can redistribute it and/or modify
2
+ it under the terms of the GNU General Public License as published by
3
+ the Free Software Foundation, either version 3 of the License, or
4
+ (at your option) any later version.
5
+
6
+ This module is distributed in the hope that it will be useful,
7
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
8
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
+ GNU General Public License for more details.
10
+
11
+ You should have received a copy of the GNU General Public License
12
+ along with this module. If not, see <http://www.gnu.org/licenses/>.
13
+
14
+ Dieses Modul ist Freie Software: Sie können es unter den Bedingungen
15
+ der GNU General Public License, wie von der Free Software Foundation,
16
+ Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren
17
+ veröffentlichten Version, weiter verteilen und/oder modifizieren.
18
+
19
+ Dieses Modul wird in der Hoffnung bereitgestellt, dass es nützlich sein wird, jedoch
20
+ OHNE JEDE GEWÄHR,; sogar ohne die implizite
21
+ Gewähr der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
22
+ Siehe die GNU General Public License für weitere Einzelheiten.
23
+
24
+ Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
25
+ Modul erhalten haben. Wenn nicht, siehe <https://www.gnu.org/licenses/>.
26
+
scuq-0.9/PKG-INFO ADDED
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.4
2
+ Name: scuq
3
+ Version: 0.9
4
+ Summary: Real and complex physical quantities with units with numpy support.
5
+ Keywords: measurements,laboratory
6
+ Author: Hans Georg Krauthäuser, Thomas Reidemeister
7
+ Author-email: Hans Georg Krauthäuser <hgk@ieee.org>
8
+ License-Expression: GPL-3.0-or-later
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Education
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
15
+ Classifier: Topic :: Scientific/Engineering
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Maintainer: Hans Georg Krauthäuser
24
+ Maintainer-email: Hans Georg Krauthäuser <hgk@ieee.org>
25
+ Requires-Python: >=3.8
26
+ Project-URL: Repository, https://github.com/hgkdd/scuq
27
+ Description-Content-Type: text/markdown
28
+
29
+ This is scuq. Scuq provides scalar (real) and complex physical quantities with units.
30
+
31
+ This software is distributed unter GPL-3 or higher. See LICENCE for details.
scuq-0.9/README.md ADDED
@@ -0,0 +1,3 @@
1
+ This is scuq. Scuq provides scalar (real) and complex physical quantities with units.
2
+
3
+ This software is distributed unter GPL-3 or higher. See LICENCE for details.
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["uv_build"]
3
+ build-backend = "uv_build"
4
+
5
+ [project]
6
+ name = "scuq"
7
+ version = "0.9"
8
+ depandencies = [
9
+ "numpy"
10
+ ]
11
+ requires-python = ">= 3.8"
12
+ authors = [
13
+ {name = "Hans Georg Krauthäuser", email = "hgk@ieee.org"},
14
+ {name = "Thomas Reidemeister"}
15
+ ]
16
+ maintainers = [
17
+ {name = "Hans Georg Krauthäuser", email = "hgk@ieee.org"}
18
+ ]
19
+ description = "Real and complex physical quantities with units with numpy support."
20
+ readme = "README.md"
21
+ license = "GPL-3.0-or-later"
22
+ license-files = ["LICENSE"]
23
+ keywords = ["measurements", "laboratory"]
24
+ classifiers = [
25
+ "Development Status :: 4 - Beta",
26
+ "Intended Audience :: Developers",
27
+ "Intended Audience :: Education",
28
+ "Intended Audience :: Science/Research",
29
+ "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
30
+ "Topic :: Scientific/Engineering",
31
+ # Specify the Python versions you support here.
32
+ "Programming Language :: Python :: 3",
33
+ "Programming Language :: Python :: 3.8",
34
+ "Programming Language :: Python :: 3.9",
35
+ "Programming Language :: Python :: 3.10",
36
+ "Programming Language :: Python :: 3.11",
37
+ "Programming Language :: Python :: 3.12",
38
+ "Programming Language :: Python :: 3.13"
39
+ ]
40
+
41
+ [project.urls]
42
+ Repository = "https://github.com/hgkdd/scuq"
@@ -0,0 +1,26 @@
1
+ This module is free software: you can redistribute it and/or modify
2
+ it under the terms of the GNU General Public License as published by
3
+ the Free Software Foundation, either version 3 of the License, or
4
+ (at your option) any later version.
5
+
6
+ This module is distributed in the hope that it will be useful,
7
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
8
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
+ GNU General Public License for more details.
10
+
11
+ You should have received a copy of the GNU General Public License
12
+ along with this module. If not, see <http://www.gnu.org/licenses/>.
13
+
14
+ Dieses Modul ist Freie Software: Sie können es unter den Bedingungen
15
+ der GNU General Public License, wie von der Free Software Foundation,
16
+ Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren
17
+ veröffentlichten Version, weiter verteilen und/oder modifizieren.
18
+
19
+ Dieses Modul wird in der Hoffnung bereitgestellt, dass es nützlich sein wird, jedoch
20
+ OHNE JEDE GEWÄHR,; sogar ohne die implizite
21
+ Gewähr der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
22
+ Siehe die GNU General Public License für weitere Einzelheiten.
23
+
24
+ Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
25
+ Modul erhalten haben. Wenn nicht, siehe <https://www.gnu.org/licenses/>.
26
+
@@ -0,0 +1,371 @@
1
+ ## \mainpage SCUQ - A Class Library for the Evaluation of Scalar- and Complex-valued Uncertain Quantities.
2
+ #
3
+ # This class library supports the evaluation of scalar (real) and complex-valued uncertain quantities.
4
+ # We divided the the library into the following modules.
5
+ # <ul>
6
+ # <li> The module scuq.units supports modeling and converting physical units.
7
+ # <li> The module scuq.si uses the units module to support SI units.
8
+ # <li> The module scuq.arithmetic. This module contains functions
9
+ # to assist the other modules in this libary. It also
10
+ # contains a RationalNumber type according to PEP-239 (see link shown below).
11
+ # <li> The module scuq.quantities allows combining units, numeric
12
+ # types, and uncertain components modeling physical quantities.
13
+ # <li> The module scuq.ucomponents module models uncertain values.
14
+ # It can be used in combination with the other modules
15
+ # to model uncertainty in measurements by assigning an uncertainty
16
+ # to a numeric value and propagating it through a mathematical
17
+ # model. The implementation uses the GUM-Tree pattern
18
+ # (see references shown below).
19
+ # <li> The module scuq.cucomponents can be used to evaluate the
20
+ # uncertainty of complex-valued models in a similar way as the
21
+ # module scuq.ucomponents does.
22
+ # </ul>
23
+ # \attention In contrast to the practice of explicit type checking and
24
+ # raising a <tt>TypeError</tt> if an argument is invalid, we use assertions. This
25
+ # gives you the opportunity to check your assignments in debug mode and
26
+ # running (relatively) fast code in release mode. The debug mode is enabled
27
+ # by default when invoking Python with <tt>python \<Your Code\></tt> and
28
+ # <tt>python -O \<Your Code\></tt> for release mode.
29
+ # \attention You should use <tt>UTF-8</tt> as default encoding because Greek
30
+ # letters represent some physical quantities, units, and dimensions. However,
31
+ # you will still be able to use this library if you have another default encoding.
32
+ # The symbols will then not print correctly.
33
+ # \attention In this documentation the term <tt>integer</tt> refers to
34
+ # they Python type <tt>int</tt> as well as <tt>long</tt>. This
35
+ # library casts all <tt>int</tt> arguments to <tt>long</tt>
36
+ # where applicable.
37
+ # This makes overflows unlikely, since the precision of
38
+ # <tt>long</tt> is limited by the platforms available memory in Python;
39
+ # that said, you will most likely encounter a
40
+ # <tt>MemoryError</tt> if the accuracy of a long variable is
41
+ # exausted.
42
+ # \note The patterns used to create the units, dimensions, and unit-operators
43
+ # have been inspired by Java Specification Request 275 that is
44
+ # implemented in <tt>JScience</tt> (see link shown below), an
45
+ # open-source library for scientific computing in Java.
46
+ # \note The design patterns used for the evaluation of uncertainty are
47
+ # subject to United States patent number 7,130,761. You should
48
+ # arrange with the patent holders if you want to use this software
49
+ # within the
50
+ # United States of America for commercial purposes. Their patent claims
51
+ # cover a wide variety of the field of automatic uncertainty
52
+ # propagation. Therefore our extensions to their proposal may also be
53
+ # subject to the claims of that patent. In order to stop the
54
+ # spread of e-patents in Europe, please support us
55
+ # and sign the petition for Software Patent Free Europe (see link shown below).
56
+ # \note There exists an alternative package for Python issued by the patent
57
+ # holders that allows the automatic propagation of uncertainty.
58
+ # Unfortunately this package does not provide any support for
59
+ # physical quantities and units. This package does also not
60
+ # integrate the standard numpy module and is therefore less flexible than
61
+ # our package.
62
+ # \author Thomas Reidemeister
63
+ # \see <ul>
64
+ # <li> \ref install "Installation Instructions".
65
+ # <li> The Java Scientific Library<br>
66
+ # (<a href="http://www.jscience.org">http://www.jscience.org</a>)
67
+ # <li> Java Specification Request - 275<br>
68
+ # (<a href="http://www.jcp.org/jsr/detail/275.jsp">http://www.jcp.org/jsr/detail/275.jsp</a>)
69
+ # <li> "The "GUM Tree": A software design pattern for handling<br>
70
+ # measurement uncertainty"; B. D. Hall; Industrial Research
71
+ # Report 1291; Measurements Standards Laboratory New Zealand (2003).
72
+ # <li> "byGUM: A Python software package for calculating measurement
73
+ # uncertainty"; B. D. Hall; Industrial Research
74
+ # Report 1305; Measurements Standards Laboratory New Zealand (2005).
75
+ # <li> Petition for a Software Patent Free Europe<br>
76
+ # (<a href="http://www.noepatents.org/">http://www.noepatents.org/</a>).
77
+ # <li> United States Patent and Trademark Office<br>
78
+ # (<a href="http://www.uspto.gov/patft/index.html">http://www.uspto.gov/patft/</a>)
79
+ # <li> PEP-239 - Adding a Rational Type to Python<br>
80
+ # (<a href="http://www.python.org/dev/peps/pep-0239/">http://www.python.org/dev/peps/pep-0239/</a>)
81
+ # </ul>
82
+
83
+ ## \file __init__.py
84
+ # \brief This file is evaluated whenever the quantities package is loaded.
85
+ #
86
+ # It loads the modules neccessary for operating this package. It also
87
+ # performs some global initialization.
88
+ # \author Thomas Reidemeister
89
+
90
+ ## \namespace scuq::__init__
91
+ # \brief This namespace does only contain variables for global initialization.
92
+
93
+ ## \namespace scuq
94
+ # \brief The namespace containing this library.
95
+
96
+ ## \page Notation Coercion Rules
97
+ # In this section we provide a complete set of coercion rules.
98
+ # These rules are used to convert among the data types of SCUQ to
99
+ # preserve the semantics. Coercion is performed whenever one of
100
+ # SCUQs types is involved in a binary operation.
101
+ # The goal of the coercion rules is to provide equal data types
102
+ # for both arguments of a binary operation;
103
+ # for example, the multiplication of a rational number and a
104
+ # floating point number should be performed by converting
105
+ # the rational number to a floating point number. Coercion is symmeric.
106
+ # Therefore the same applies to multiplications of floating point
107
+ # with rational numbers.
108
+ # We denote the rule as follows.
109
+ # \f[{a} \times {f} \rightarrow {f(a)} \times {f} \f]
110
+ # We denote the rules as follows:
111
+ # <ul>
112
+ # <li>\f${f}\f$ and \f${f(x)}\f$ refer to instances of
113
+ # <tt>float</tt>. The second argument is used to
114
+ # express the conversion of \f$x\f$ to a <tt>float</tt>.
115
+ # <li>\f${z}\f$ and \f${z(x)}\f$ refer to instances of
116
+ # <tt>long</tt> and <tt>int</tt>. The second argument is used to
117
+ # express the conversion of \f$x\f$ to a <tt>long</tt>.
118
+ # <li>\f${c}\f$ and \f${c(x)}\f$ refer to instances of
119
+ # <tt>complex</tt>. The second argument is used to
120
+ # express the conversion of \f$x\f$ to a <tt>complex</tt>.
121
+ # <li>\f${nd}\f$ refers to instances of <tt>numpy.ndarray</tt>.
122
+ # <li>\f${a}\f$ and \f${a(x)}\f$ refer to instances of
123
+ # arithmetic.RationalNumber. The second argument is used to
124
+ # express the conversion of \f$x\f$ to an instance of
125
+ # arithmetic.RationalNumber. The conversion is implemented in
126
+ # arithmetic.RationalNumber.value_of.
127
+ # <li>\f${q}\f$ and \f${q(x)}\f$ refer to instances of
128
+ # quantities.Quantity. The second argument is used to
129
+ # express the conversion of \f$x\f$ to an instance of
130
+ # quantities.Quantity. The conversion is implemented in
131
+ # quantities.Quantity.value_of.
132
+ # <li>\f${u_s}\f$ and \f${u_s(x)}\f$ refer to instances of
133
+ # ucomponents.UncertainComponent. The second argument is used to
134
+ # express the conversion of \f$x\f$ to an instance of
135
+ # ucomponents.UncertainComponent. The conversion is implemented in
136
+ # ucomponents.UncertainComponent.value_of.
137
+ # <li>\f${u_c}\f$ and \f${u_c(x)}\f$ refer to instances of
138
+ # cucomponents.CUncertainComponent. The second argument is used to
139
+ # express the conversion of \f$x\f$ to an instance of
140
+ # cucomponents.CUncertainComponent. The conversion is implemented in
141
+ # cucomponents.CUncertainComponent.value_of.
142
+ # <li>\f${u}\f$ denotes an instance of units.Unit.
143
+ # <li>\f${\emptyset}\f$ denotes an undefined operation
144
+ # (i.e. the coercion raises an exception).
145
+ # </ul>
146
+ #
147
+ # <b>The cohercion rules by type:</b>
148
+ # <ul>
149
+ # <li>Type: arithmetic.RationalNumber
150
+ # \f{eqnarray}
151
+ # a \times a & \rightarrow & a \times a \\
152
+ # a \times z & \rightarrow & a \times a(z) \\
153
+ # a \times c & \rightarrow & c(a) \times c \\
154
+ # a \times f & \rightarrow & f(a) \times f \\
155
+ # a \times q & \rightarrow & q(a) \times q \\
156
+ # a \times u_s & \rightarrow & u_s(a) \times u_s \\
157
+ # a \times u_c & \rightarrow & u_c(a) \times u_c \\
158
+ # a \times u & \rightarrow & \emptyset \\
159
+ # a \times nd & \rightarrow & \emptyset
160
+ # \f}
161
+ # <li>Type: quantities.Quantity
162
+ # \f{eqnarray}
163
+ # q \times q & \rightarrow & q \times q \\
164
+ # q \times z & \rightarrow & q \times q(z) \\
165
+ # q \times c & \rightarrow & q \times q(c) \\
166
+ # q \times f & \rightarrow & q \times q(f) \\
167
+ # q \times u_s & \rightarrow & q \times q(u_s) \\
168
+ # q \times u_c & \rightarrow & q \times q(u_c) \\
169
+ # q \times nd & \rightarrow & q \times q(nd) \\
170
+ # q \times u & \rightarrow & \emptyset
171
+ # \f}
172
+ # <li>Type: ucomponents.UncertainComponent
173
+ # \f{eqnarray}
174
+ # u_s \times u_s & \rightarrow & u_s \times u_s \\
175
+ # u_s \times z & \rightarrow & u_s \times u_s(z) \\
176
+ # u_s \times f & \rightarrow & u_s \times u_s(f) \\
177
+ # u_s \times nd & \rightarrow & \emptyset \\
178
+ # u_s \times u_c & \rightarrow & \emptyset \\
179
+ # u_s \times c & \rightarrow & \emptyset \\
180
+ # u_s \times u & \rightarrow & \emptyset
181
+ # \f}
182
+ # <li>Type: cucomponents.CUncertainComponent
183
+ # \f{eqnarray}
184
+ # u_c \times u_c & \rightarrow & u_c \times u_c \\
185
+ # u_c \times z & \rightarrow & u_c \times u_c(z) \\
186
+ # u_c \times f & \rightarrow & u_c \times u_c(f) \\
187
+ # u_c \times c & \rightarrow & u_c \times u_c(c) \\
188
+ # u_c \times nd & \rightarrow & \emptyset \\
189
+ # u_c \times u & \rightarrow & \emptyset
190
+ # \f}
191
+ #
192
+ # </ul>
193
+ # \attention The binary operators from <tt>numpy</tt>, such as
194
+ # numpy.arctan2, and numpy.hypot, do not implement
195
+ # coercion. Instead, they broadcast arctan2 to the first
196
+ # argument. Therefore our coercion rules are not
197
+ # symmetric when using operators from numpy.
198
+
199
+ # documentation of supplementary files
200
+
201
+ ## \page sup_files Files and Directories
202
+ # In this section we describe the files that are not included in the file documentation.
203
+ #
204
+ # <h2>AUTHORS</h2><br>
205
+ #
206
+ # This file contains the contact information of the authors of SCUQ.
207
+ #
208
+ # At the time this document was created, only Thomas Reidemeister is involved.
209
+ #
210
+ #
211
+ # <h2>doc.cfg</h2><br>
212
+ #
213
+ # Doxygen (see link below) uses this file to create the SCUQ reference manual automatically.
214
+ #
215
+ # It contains the style- and output format definitions. Please do not directly invoke Doxygen on
216
+ # this file; use the respective make target instead (<tt>make clean</tt>).
217
+ #
218
+ #
219
+ # <h2>Makefile</h2><br>
220
+ #
221
+ # This file is used by GNU make to assist the installation of SCUQ and
222
+ # perform a variety of administrative tasks.
223
+ #
224
+ # <ul>
225
+ # <li> Performing the self test (<tt>make test</tt>).
226
+ # <li> Creating the reference manual (<tt>make doc</tt>).
227
+ # <li> Building backups of the current state of the library (<tt>make backup</tt>).
228
+ # <li> Cleaning temporary files (<tt>make clean</tt>).
229
+ # </ul>
230
+ #
231
+ # A companion file is <tt>make_latex.sh</tt>. It is a script to create the PDF
232
+ # documentation whenever <tt>make doc</tt> is invoked.
233
+ #
234
+ #
235
+ # <h2>examples</h2><br>
236
+ #
237
+ # This directory contains the application examples described in this programming manual and in the Reidemeister thesis.
238
+ #
239
+ #
240
+ # <h2>doc</h2><br>
241
+ #
242
+ # This directory is a placeholder for the reference manual if it is created from the source code.
243
+ # By default the documentation is created in PDF- and HTML format.
244
+ #
245
+ # \see <ul>
246
+ # <li> SCUQ Installation Instructions
247
+ # <li> SCUQ Example Documentation (included in this manual)
248
+ # <li> "SCUQ - A Class Library for the Evaluation of Scalar- and Complex-valued Uncertain Quantities";
249
+ # Thomas Reidemeister; Diploma-Thesis; Otto-von-Guericke University, Magdeburg, Germany (2007)
250
+ # <li> GNU Make (<a href="http://www.gnu.org/software/make/">http://www.gnu.org/software/make/</a>)
251
+ # <li> Doxygen (<a href="http://www.stack.nl/~dimitri/doxygen/">http://www.stack.nl/~dimitri/doxygen/</a>)
252
+ # </ul>
253
+
254
+ ## \page install Installation
255
+ #
256
+ # <p>In this section we describe the installation of SCUQ in the user space. Note that the version
257
+ # numbers of the tools refers to the minimum version required. SCUQ may also run using later versions.
258
+ # </p>
259
+ #
260
+ # <p><h2>Minimum Requirements:</h2></p>
261
+ # <ul>
262
+ # <li> Python 2.4, installed and registered in the <tt>PATH</tt> environment variable.
263
+ # <li> NumPy 1.0.1, installed as module in the Python distribution.
264
+ # <li> A tool uncompressing zip files (e.g. Info-ZIP or 7-ZIP). We assume that a
265
+ # console application exists to unzip files from the command line that is registered in
266
+ # the <tt>PATH</tt> environment variable.
267
+ # </ul>
268
+ #
269
+ # <p><h2>Optional Requirements:</h2></p>
270
+ # <ul>
271
+ # <li> GNU Make, installed and registered in the <tt>PATH</tt> environment variable.
272
+ # <li> GNU Tar, installed and registered in the <tt>PATH</tt> environment variable.
273
+ # <li> Bzip2, installed and registered in the <tt>PATH</tt> environment variable.
274
+ # <li> Doxygen 1.5.1, installed and registered in the <tt>PATH</tt> environment variable.
275
+ # <li> Ghostscript 8.15.0, installed and registered in the <tt>PATH</tt> environment variable.
276
+ # <li> BSD Shell, installed and registered in the <tt>PATH</tt> environment variable.
277
+ # <li> LaTeX and PDFLaTex, installed and registered in the <tt>PATH</tt> environment variable.
278
+ # </ul>
279
+ #
280
+ # <p>Most of the optional tools required are included in recent Linux distributions
281
+ # and Cygwin. Doxygen can be obtained using the link shown below.</p>
282
+ #
283
+ # <p>We describe two types of the installation:</p>
284
+ # <ul>
285
+ # <li> A minimal installation that installs SCUQ for the use in Python only.
286
+ # <li> A comprehensive installation that installs the class library for the use in Python,
287
+ # performs the self-test, and generates the SCUQ reference manual. This installation
288
+ # can also generate backups of the current state of SCUQ
289
+ # (i.e. if it is modified by the user).
290
+ # </ul>
291
+ #
292
+ # <p><h2>Minimal Installation</h2></p>
293
+ #
294
+ # <ol>
295
+ # <li> Copy the archive SCUQ.zip to the directory desired. We denote it as \<your project dir\>.
296
+ # <li> Open a console (e.g. BASH on Linux, CMD.EXE on Windows)
297
+ # <li> Change to the project directory using
298
+ #
299
+ # <tt>cd \<your project dir\></tt>
300
+ #
301
+ # <li> Unzip the archive SCUQ.zip using
302
+ #
303
+ # <tt>unzip SCUQ.zip</tt>
304
+ #
305
+ # You may also use other tools to uncompress the archive.
306
+ # <li> The classes and modules are now unzipped into the directory
307
+ #
308
+ # <tt>\<your project dir\>/SCUQ/</tt>
309
+ #
310
+ # <li> Change to this directory using
311
+ #
312
+ # <tt>cd SCUQ</tt>
313
+ #
314
+ # <li>Verify the compatibility of your platform running the suite of test cases using
315
+ #
316
+ # <tt>python scuq/testcases.py</tt>
317
+ #
318
+ # <p>The console output must not contain any exceptions. If it contains any exceptions then
319
+ # SCUQ will most likely not run on your system. These failures maybe due to a wrong
320
+ # configured Python installation or your platform does not meet the required floating-point
321
+ # accuracy.
322
+ # <li>If SCUQ passed the self-verification, you can use it in your software. Please copy the
323
+ # subdirectory <tt>scuq</tt> to the root of your project directory. Then you can import SCUQ using
324
+ #
325
+ # <tt>from scuq import *</tt>
326
+ #
327
+ # <p>in your projects code.</p>
328
+ # </ol>
329
+ #
330
+ # <p><h2>Comprehensive Installation</h2></p>
331
+ #
332
+ # <ol>
333
+ # <li> Perform the steps 1-6 of the minimal installation
334
+ # <li>Create the documentation and perform the self-verification using
335
+ #
336
+ # <tt>make</tt>
337
+ #
338
+ # <p>The output of this command must not print any errors. Errors maybe
339
+ # due to a wrong installation of the tools required or your platform
340
+ # does meet the required floating-point accuracy.</p>
341
+ # <li><p>If SCUQ passed the self-verification, you can use it in your software.
342
+ # Please copy the subdirectory <tt>scuq</tt> to the root of your project directory.
343
+ # Then you can import SCUQ in your project using</p>
344
+ #
345
+ # <tt>from scuq import *</tt>
346
+ #
347
+ # <p>The programming manual in HTML and PDF format is stored in the subdirectory doc.</p>
348
+ # </ol>
349
+ #
350
+ # \see <ul>
351
+ # <li> Doxygen (<a href="http://www.stack.nl/~dimitri/doxygen/">http://www.stack.nl/~dimitri/doxygen/</a>)
352
+ # <li> Python (<a href="http://www.python.org/">http://www.python.org/</a>)
353
+ # <li> GNU (<a href="http://www.gnu.org/">http://www.gnu.org/</a>)
354
+ # <li> teTeX (<a href="http://www.tug.org/teTeX/">http://www.tug.org/teTeX/</a>)
355
+ # <li> MiKTeX (<a href="http://www.miktex.org/">http://www.miktex.org/</a>)
356
+ # <li> NumPy (<a href="http://www.scipy.org/">http://www.scipy.org/</a>)
357
+ # <li> Ghostscript (<a href="http://www.cs.wisc.edu/~ghost/">http://www.cs.wisc.edu/~ghost/</a>)
358
+ # <li> Info-ZIP (<a href="http://www.info-zip.org/">http://www.info-zip.org/</a>)
359
+ # <li> 7-ZIP (<a href="http://www.7-zip.org/">http://www.7-zip.org/</a>)
360
+ # <li> CygWin (<a href="http://cygwin.com/">http://cygwin.com/</a>)
361
+ # </ul>
362
+
363
+ ## The modules contained within the quantities package.
364
+ __all__ = ["arithmetic", "units", "qexceptions", "si", "quantities", "operators", "ucomponents", "cucomponents"]
365
+
366
+ version='unknown'
367
+ try:
368
+ import __version__
369
+ version=__version__.version
370
+ except ImportError:
371
+ pass