Debian Codegraph @

docs/source/faq.rst

raw
1 .. toctree::
2 :maxdepth: 1
3
4 FAQ
5 ===
6
7 Q: Why sampling interval in the sampled dimension, not sampling rate?
8 ---------------------------------------------------------------------
9
10 Because the interval is the more **general** term. It can also be
11 applied to dimensions that do not extend in time but for example space.
12
13 Q: What does this error mean? “Cannot open a nonexistent file in ReadOnly mode”
14 -------------------------------------------------------------------------------
15
16 Arises when the provided file path is invalid and you try to open it
17 with the nixio.FileMode.ReadOnly mode. Solution: provide the path to an
18 existing file to be opened in ``nixio.FileMode.ReadOnly`` mode or use the
19 ``nixio.FileMode.ReadWrite`` or ``nixio.FileMode.Overwrite`` flag to
20 create a new one.
21
22 Q: Is it ok to use non-SI units?
23 --------------------------------
24
25 Well, let’s say it is tolerated but not advised. When using SI and
26 compounds of SI units we can try to scale according to the provided
27 units which is not supported/not necessarily possible for non-SI units.
28 It is largely safe to use non-SI units when providing metadata or
29 specifying the unit of the data stored in a *DataArray*. It may become
30 problematic in the context of *Dimensions*. Some functions support
31 reading data with the positions provided by the *Tags*, in these cases we
32 rely on scalability of the units.
33
34 If you feel this is unjustified, feel free to improve our unit-handling
35 system.
36
37 Q: Can I use unicode?
38 ---------------------
39
40 Unfortunately, unicode is so far not supported. In order to specify
41 microseconds you can, and have to, write “us”.
42
43 Q: Why does a *DataArray* not automatically load the data from file?
44 --------------------------------------------------------------------
45
46 This would be very convenient, indeed. Otoh, the *NIX* entities, such as
47 the *DataArray*, are designed to be lightweight objects that can be
48 created quickly and do not eat up the RAM. At opening time we have no
49 idea about the actual data size. In our use-cases a single
50 *DataArray* can contain GB of data. Reading these would take some time
51 and increase memory demand.
52
53 It further allows for partial loading of data. A *DataArray* that
54 contains multiple long signals can be very large and it would be
55 inefficient loading the entire data when you need only a
56 single signal, or a few data segments.