File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class Gibbs(object):
112
112
EXAMPLE
113
113
-------
114
114
>>> from basicrta.gibbs import Gibbs
115
- >>> from basicrta.tests.data import times
115
+ >>> from basicrta.tests.datafiles import times
116
116
>>> g = Gibbs(times=times, residue='W313', cutoff=7.0)
117
117
>>> g.run()
118
118
>>> g.process_gibbs()
Original file line number Diff line number Diff line change
1
+ # -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
2
+ # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
3
+ #
4
+ # Basicrta
5
+ # Copyright (c) 2024 Ricky Sexton
6
+ #
7
+ # Released under the GNU Public Licence, v3 or any higher version
8
+ #
9
+ # Please cite your use of basicrta in published work:
10
+ #
11
+
12
+ """
13
+ Location of data files for the basicrta unit tests
14
+ ====================================================
15
+
16
+ from basicrta.tests.datafiles import *
17
+
18
+ """
19
+
20
+ __all__ = [
21
+ "times" # set of residence times collected from W313 of b2ar
22
+ ]
23
+
24
+ from importlib import resources
25
+ import numpy as np
26
+ import basicrta .tests .data
27
+
28
+ _data_ref = resources .files ('basicrta.tests.data' )
29
+
30
+ times = np .load ((_data_ref / 'times.npy' ).as_posix ())
31
+ # This should be the last line: clean up namespace
32
+ del resources
33
+
You can’t perform that action at this time.
0 commit comments