Skip to content

Commit

Permalink
Update paths to files used by docs to make more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnoble committed Nov 22, 2012
1 parent e872ce2 commit 0ae4044
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 37 deletions.
9 changes: 3 additions & 6 deletions docs/acquisition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ length of 1,023 chips at a chipping rate of 1.023 MHz).

.. ipython::

@suppress
In [24]: %cd ..

In [1]: import peregrine.acquisition

In [1]: import peregrine.samples

In [2]: import peregrine.analysis.acquisition

In [2]: samps = peregrine.samples.load_samples("tests/test_samples.dat")
In [2]: samps = peregrine.samples.load_samples("../tests/test_samples.dat")

In [2]: acq = peregrine.acquisition.Acquisition(samps, 16.368e6, 4.092e6, 16368)

Expand Down Expand Up @@ -80,9 +77,9 @@ Acquisition results can be saved and loaded from a file using the

.. ipython::

In [22]: peregrine.acquisition.save_acq_results("tests/test.acq_results", res)
In [22]: peregrine.acquisition.save_acq_results("../tests/test.acq_results", res)

In [22]: res2 = peregrine.acquisition.load_acq_results("tests/test.acq_results")
In [22]: res2 = peregrine.acquisition.load_acq_results("../tests/test.acq_results")

In [13]: peregrine.analysis.acquisition.acq_table(res2)

Expand Down
5 changes: 1 addition & 4 deletions docs/samples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,11 @@ analysing and plotting sample data.

.. ipython::

@suppress
In [24]: %cd ..

In [1]: import peregrine.samples

In [2]: import peregrine.analysis.samples

In [3]: samps = peregrine.samples.load_samples("tests/test_samples.dat")
In [3]: samps = peregrine.samples.load_samples("../tests/test_samples.dat")

@savefig samples_analysis_summary.png width=75% align=center
In [13]: peregrine.analysis.samples.summary(samps, 16.368e6)
Expand Down
54 changes: 27 additions & 27 deletions tests/test.acq_results
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sS'snr'
p17
g6
(g10
S'\x1bX\x0c\x99\x0b}/@'
S'\x1eX\x0c\x99\x0b}/@'
p18
tp19
Rp20
Expand Down Expand Up @@ -73,7 +73,7 @@ I1
sg17
g6
(g10
S'\xd7\x12\xc3\r\x94\xf98@'
S'\xd8\x12\xc3\r\x94\xf98@'
p32
tp33
Rp34
Expand Down Expand Up @@ -104,7 +104,7 @@ I2
sg17
g6
(g10
S"04A\rb\xab'@"
S"14A\rb\xab'@"
p43
tp44
Rp45
Expand Down Expand Up @@ -135,7 +135,7 @@ I3
sg17
g6
(g10
S'\x1d\x17S]bf(@'
S'\x1e\x17S]bf(@'
p54
tp55
Rp56
Expand Down Expand Up @@ -166,7 +166,7 @@ I4
sg17
g6
(g10
S'\xf9c\xe4D>\xb0&@'
S'\xf4c\xe4D>\xb0&@'
p65
tp66
Rp67
Expand Down Expand Up @@ -197,7 +197,7 @@ I5
sg17
g6
(g10
S'\xeaQ\xf1\x9ay\x17)@'
S'\xe5Q\xf1\x9ay\x17)@'
p76
tp77
Rp78
Expand Down Expand Up @@ -228,7 +228,7 @@ I6
sg17
g6
(g10
S"3ex\xfb\xd8U'@"
S"0ex\xfb\xd8U'@"
p87
tp88
Rp89
Expand Down Expand Up @@ -259,7 +259,7 @@ I7
sg17
g6
(g10
S'\xf8\xdaz\xc8[\xa8,@'
S'\xf7\xdaz\xc8[\xa8,@'
p98
tp99
Rp100
Expand Down Expand Up @@ -290,7 +290,7 @@ I8
sg17
g6
(g10
S'$R>\x8c\xed\n5@'
S'"R>\x8c\xed\n5@'
p109
tp110
Rp111
Expand Down Expand Up @@ -321,7 +321,7 @@ I9
sg17
g6
(g10
S'\xcc&\x7ft\xa7\xb6$@'
S'\xcd&\x7ft\xa7\xb6$@'
p120
tp121
Rp122
Expand Down Expand Up @@ -352,7 +352,7 @@ I10
sg17
g6
(g10
S'[p\x06@\xdc\xa1%@'
S'\\p\x06@\xdc\xa1%@'
p131
tp132
Rp133
Expand Down Expand Up @@ -414,7 +414,7 @@ I12
sg17
g6
(g10
S"\x1e\x99\xc0'<\xe3%@"
S"\x1c\x99\xc0'<\xe3%@"
p153
tp154
Rp155
Expand Down Expand Up @@ -538,7 +538,7 @@ I16
sg17
g6
(g10
S"`\xaf\x00\xae\xee\xf7'@"
S"b\xaf\x00\xae\xee\xf7'@"
p197
tp198
Rp199
Expand Down Expand Up @@ -569,7 +569,7 @@ I17
sg17
g6
(g10
S"\xcc!\x05\x02#\x80'@"
S"\xc8!\x05\x02#\x80'@"
p208
tp209
Rp210
Expand Down Expand Up @@ -600,7 +600,7 @@ I18
sg17
g6
(g10
S'\t\xe3\xaec\xe2\x9b+@'
S'\x08\xe3\xaec\xe2\x9b+@'
p219
tp220
Rp221
Expand Down Expand Up @@ -631,7 +631,7 @@ I19
sg17
g6
(g10
S'\x14\xac\x9f\xf1\x84|%@'
S'\x13\xac\x9f\xf1\x84|%@'
p230
tp231
Rp232
Expand Down Expand Up @@ -662,7 +662,7 @@ I20
sg17
g6
(g10
S"\x99\x02\xa0r\x85T'@"
S"\x9b\x02\xa0r\x85T'@"
p241
tp242
Rp243
Expand Down Expand Up @@ -693,7 +693,7 @@ I21
sg17
g6
(g10
S'[\xbd]~\xd5\xaf-@'
S'`\xbd]~\xd5\xaf-@'
p252
tp253
Rp254
Expand Down Expand Up @@ -724,7 +724,7 @@ I22
sg17
g6
(g10
S'\x00]2\xd1\xd5\xc6$@'
S'\x02]2\xd1\xd5\xc6$@'
p263
tp264
Rp265
Expand Down Expand Up @@ -786,7 +786,7 @@ I24
sg17
g6
(g10
S"=\xfcsz9\x8c'@"
S"B\xfcsz9\x8c'@"
p285
tp286
Rp287
Expand Down Expand Up @@ -817,7 +817,7 @@ I25
sg17
g6
(g10
S'\xaa\\w\xf1\x98\xba-@'
S'\xab\\w\xf1\x98\xba-@'
p296
tp297
Rp298
Expand Down Expand Up @@ -848,7 +848,7 @@ I26
sg17
g6
(g10
S'\x18\xda1\xa8\xe54+@'
S' \xda1\xa8\xe54+@'
p307
tp308
Rp309
Expand Down Expand Up @@ -879,7 +879,7 @@ I27
sg17
g6
(g10
S'\rk\xa1\xd8E\xa0&@'
S'\x13k\xa1\xd8E\xa0&@'
p318
tp319
Rp320
Expand Down Expand Up @@ -910,7 +910,7 @@ I28
sg17
g6
(g10
S"'\xac\x05\x96\x04w*@"
S'%\xac\x05\x96\x04w*@'
p329
tp330
Rp331
Expand Down Expand Up @@ -941,7 +941,7 @@ I29
sg17
g6
(g10
S'`\x1fK\x08u[&@'
S'^\x1fK\x08u[&@'
p340
tp341
Rp342
Expand Down Expand Up @@ -972,7 +972,7 @@ I30
sg17
g6
(g10
S'\xa0\xe1\xdc\xe0 y*@'
S'\x9f\xe1\xdc\xe0 y*@'
p351
tp352
Rp353
Expand Down Expand Up @@ -1003,7 +1003,7 @@ I31
sg17
g6
(g10
S'\x14\xd7\xf6\xad\xcd\x1b(@'
S'\x11\xd7\xf6\xad\xcd\x1b(@'
p362
tp363
Rp364
Expand Down

0 comments on commit 0ae4044

Please sign in to comment.