~tfardet/#1255414

failed

07bbdcaTanguy Fardet

Added P part of the model

Owner
~tfardet
Created
5 months ago
Updated
5 months ago
Build manifest
view manifest »

Tasks

view log »
path view log »
check view log »
setup view log »
test view log »
doc view log »
go to bottom »
go to top »
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[#1255414] 2024/06/19 20:30:22 Booting image ubuntu/lts (default) on port 22926
[#1255414] 2024/06/19 20:30:22 Waiting for guest to settle
[#1255414] 2024/06/19 20:30:31 Sending tasks
[#1255414] 2024/06/19 20:30:33 Sending build environment
[#1255414] 2024/06/19 20:30:33 Sending secrets
[#1255414] 2024/06/19 20:30:33 Resolving secret 69332acb-b779-4bb2-ae8a-719f8e150ace
[#1255414] 2024/06/19 20:30:34 Installing packages
Warning: Permanently added '[localhost]:22926' (ED25519) to the list of known hosts.
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://archive.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1087 kB]
Fetched 1344 kB in 0s (3716 kB/s)
Reading package lists...
Warning: Permanently added '[localhost]:22926' (ED25519) to the list of known hosts.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  javascript-common libexpat1-dev libjs-jquery libjs-sphinxdoc
  libjs-underscore libpython3-dev libpython3.10 libpython3.10-dev python3-dev
  python3-distutils python3-lib2to3 python3-setuptools python3-wheel
  python3.10-dev zlib1g-dev
Suggested packages:
  apache2 | lighttpd | httpd python-setuptools-doc
The following NEW packages will be installed:
  javascript-common libexpat1-dev libjs-jquery libjs-sphinxdoc
  libjs-underscore libpython3-dev libpython3.10 libpython3.10-dev python3-dev
  python3-distutils python3-lib2to3 python3-pip python3-setuptools
  python3-wheel python3.10-dev zlib1g-dev
0 upgraded, 16 newly installed, 0 to remove and 3 not upgraded.
Need to get 10.0 MB of archives.
After this operation, 40.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 javascript-common all 11+nmu1 [5936 B]
Get:2 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 libexpat1-dev amd64 2.4.7-1ubuntu0.3 [147 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-jquery all 3.6.0+dfsg+~3.5.13-1 [321 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-underscore all 1.13.2~dfsg-2 [118 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-sphinxdoc all 4.3.2-1 [139 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 libpython3.10 amd64 3.10.12-1~22.04.3 [1948 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2 [164 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 libpython3.10-dev amd64 3.10.12-1~22.04.3 [4762 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 libpython3-dev amd64 3.10.6-1~22.04 [7166 B]
Get:10 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3.10-dev amd64 3.10.12-1~22.04.3 [507 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3-lib2to3 all 3.10.8-1~22.04 [77.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3-distutils all 3.10.8-1~22.04 [139 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3-dev amd64 3.10.6-1~22.04 [26.0 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3-setuptools all 59.6.0-1.2ubuntu0.22.04.1 [339 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 python3-wheel all 0.37.1-2ubuntu0.22.04.1 [32.0 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 python3-pip all 22.0.2+dfsg-1ubuntu0.4 [1305 kB]
Fetched 10.0 MB in 1s (8613 kB/s)
Selecting previously unselected package javascript-common.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 39171 files and directories currently installed.)
Preparing to unpack .../00-javascript-common_11+nmu1_all.deb ...
Unpacking javascript-common (11+nmu1) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../01-libexpat1-dev_2.4.7-1ubuntu0.3_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.4.7-1ubuntu0.3) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../02-libjs-jquery_3.6.0+dfsg+~3.5.13-1_all.deb ...
Unpacking libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../03-libjs-underscore_1.13.2~dfsg-2_all.deb ...
Unpacking libjs-underscore (1.13.2~dfsg-2) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../04-libjs-sphinxdoc_4.3.2-1_all.deb ...
Unpacking libjs-sphinxdoc (4.3.2-1) ...
Selecting previously unselected package libpython3.10:amd64.
Preparing to unpack .../05-libpython3.10_3.10.12-1~22.04.3_amd64.deb ...
Unpacking libpython3.10:amd64 (3.10.12-1~22.04.3) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../06-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu9.2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Selecting previously unselected package libpython3.10-dev:amd64.
Preparing to unpack .../07-libpython3.10-dev_3.10.12-1~22.04.3_amd64.deb ...
Unpacking libpython3.10-dev:amd64 (3.10.12-1~22.04.3) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../08-libpython3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.10.6-1~22.04) ...
Selecting previously unselected package python3.10-dev.
Preparing to unpack .../09-python3.10-dev_3.10.12-1~22.04.3_amd64.deb ...
Unpacking python3.10-dev (3.10.12-1~22.04.3) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../10-python3-lib2to3_3.10.8-1~22.04_all.deb ...
Unpacking python3-lib2to3 (3.10.8-1~22.04) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../11-python3-distutils_3.10.8-1~22.04_all.deb ...
Unpacking python3-distutils (3.10.8-1~22.04) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../12-python3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking python3-dev (3.10.6-1~22.04) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../13-python3-setuptools_59.6.0-1.2ubuntu0.22.04.1_all.deb ...
Unpacking python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../14-python3-wheel_0.37.1-2ubuntu0.22.04.1_all.deb ...
Unpacking python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../15-python3-pip_22.0.2+dfsg-1ubuntu0.4_all.deb ...
Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
Setting up javascript-common (11+nmu1) ...
Setting up libpython3.10:amd64 (3.10.12-1~22.04.3) ...
Setting up libexpat1-dev:amd64 (2.4.7-1ubuntu0.3) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Setting up libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
Setting up python3-lib2to3 (3.10.8-1~22.04) ...
Setting up libjs-underscore (1.13.2~dfsg-2) ...
Setting up python3-distutils (3.10.8-1~22.04) ...
Setting up python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Setting up libpython3.10-dev:amd64 (3.10.12-1~22.04.3) ...
Setting up python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
Setting up libjs-sphinxdoc (4.3.2-1) ...
Setting up python3.10-dev (3.10.12-1~22.04.3) ...
Setting up libpython3-dev:amd64 (3.10.6-1~22.04) ...
Setting up python3-dev (3.10.6-1~22.04) ...
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
[#1255414] 2024/06/19 20:30:39 Cloning repositories
Cloning into 'OrgMatt'...
+ cd OrgMatt
+ git checkout -q 07bbdcab22bc9f1ae4976e23e9a01c9ce2182b62
+ cd OrgMatt
+ git submodule update --init --recursive
[#1255414] 2024/06/19 20:30:40 Running task path
[#1255414] 2024/06/19 20:30:40 Running task check
[#1255414] 2024/06/19 20:30:44 Running task setup
[#1255414] 2024/06/19 20:31:00 Running task test
[#1255414] 2024/06/19 20:31:12 Build failed.
[#1255414] 2024/06/19 20:31:12 The build environment will be kept alive for 10 minutes.
[#1255414] 2024/06/19 20:31:12 To log in with SSH and examine it, use the following command:
[#1255414] 2024/06/19 20:31:12 
[#1255414] 2024/06/19 20:31:12 	ssh -t builds@fra02.builds.sr.ht connect 1255414
[#1255414] 2024/06/19 20:31:12 
[#1255414] 2024/06/19 20:31:12 After logging in, the deadline is increased to your remaining build time.
[#1255414] 2024/06/19 20:41:12 Deadline elapsed. Terminating build environment.
[#1255414] 2024/06/19 20:41:12 Error: Running task on guest: exit status 1
path
1
+ echo 'export PATH=$PATH:/home/build/.local/bin'
check
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
+ pip3 install reuse
Defaulting to user installation because normal site-packages is not writeable
Collecting reuse
  Downloading reuse-3.0.2.tar.gz (269 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 269.4/269.4 KB 27.6 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting binaryornot<0.5.0,>=0.4.4
  Downloading binaryornot-0.4.4-py2.py3-none-any.whl (9.0 kB)
Collecting python-debian!=0.1.45,!=0.1.46,!=0.1.47,<0.2.0,>=0.1.34
  Downloading python_debian-0.1.49-py3-none-any.whl (132 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.5/132.5 KB 67.6 MB/s eta 0:00:00
Collecting Jinja2<4.0.0,>=3.0.0
  Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.3/133.3 KB 70.1 MB/s eta 0:00:00
Collecting license-expression>=1.0
  Downloading license_expression-30.3.0-py3-none-any.whl (108 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.9/108.9 KB 64.8 MB/s eta 0:00:00
Collecting boolean.py>=3.8
  Downloading boolean.py-4.0-py3-none-any.whl (25 kB)
Collecting chardet>=3.0.2
  Downloading chardet-5.2.0-py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.4/199.4 KB 84.1 MB/s eta 0:00:00
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Building wheels for collected packages: reuse
  Building wheel for reuse (pyproject.toml): started
  Building wheel for reuse (pyproject.toml): finished with status 'done'
  Created wheel for reuse: filename=reuse-3.0.2-cp310-cp310-manylinux_2_35_x86_64.whl size=119657 sha256=91bebc3608eeea55875ac12fb9650ffa9738b8be4e8025014818adfddbb884c5
  Stored in directory: /home/build/.cache/pip/wheels/2b/57/24/d43da4d2afa2378313e911ca8254dd24b3becb9e0ee2d57e0b
Successfully built reuse
Installing collected packages: boolean.py, MarkupSafe, license-expression, chardet, python-debian, Jinja2, binaryornot, reuse
Successfully installed Jinja2-3.1.4 MarkupSafe-2.1.5 binaryornot-0.4.4 boolean.py-4.0 chardet-5.2.0 license-expression-30.3.0 python-debian-0.1.49 reuse-3.0.2
+ cd OrgMatt
+ reuse lint

# SUMMARY

* Bad licenses: 0
* Deprecated licenses: 0
* Licenses without file extension: 0
* Missing licenses: 0
* Unused licenses: 0
* Used licenses: CC-BY-SA-4.0, BSD-2-Clause, CC-BY-4.0, GPL-3.0-or-later, Python-2.0, CC0-1.0
* Read errors: 0
* files with copyright information: 90 / 90
* files with license information: 90 / 90

Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
+ cd OrgMatt
+ pip3 install --upgrade pip pytest setuptools
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/lib/python3/dist-packages (22.0.2)
Collecting pip
  Downloading pip-24.0-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 72.4 MB/s eta 0:00:00
Collecting pytest
  Downloading pytest-8.2.2-py3-none-any.whl (339 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 339.9/339.9 KB 106.4 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (59.6.0)
Collecting setuptools
  Downloading setuptools-70.1.0-py3-none-any.whl (882 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 882.6/882.6 KB 134.4 MB/s eta 0:00:00
Collecting tomli>=1
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting iniconfig
  Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Collecting pluggy<2.0,>=1.5
  Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
Collecting packaging
  Downloading packaging-24.1-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.0/54.0 KB 34.4 MB/s eta 0:00:00
Collecting exceptiongroup>=1.0.0rc8
  Downloading exceptiongroup-1.2.1-py3-none-any.whl (16 kB)
Installing collected packages: tomli, setuptools, pluggy, pip, packaging, iniconfig, exceptiongroup, pytest
Successfully installed exceptiongroup-1.2.1 iniconfig-2.0.0 packaging-24.1 pip-24.0 pluggy-1.5.0 pytest-8.2.2 setuptools-70.1.0 tomli-2.0.1
+ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy>=1.20 (from -r requirements.txt (line 5))
  Downloading numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 kB 7.6 MB/s eta 0:00:00
Collecting scipy (from -r requirements.txt (line 6))
  Downloading scipy-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 25.5 MB/s eta 0:00:00
Collecting pandas (from -r requirements.txt (line 7))
  Downloading pandas-2.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Collecting pint>=0.19 (from -r requirements.txt (line 8))
  Downloading Pint-0.24-py3-none-any.whl.metadata (8.5 kB)
Collecting pycountry (from -r requirements.txt (line 9))
  Downloading pycountry-24.6.1-py3-none-any.whl.metadata (12 kB)
Collecting openscm-units (from -r requirements.txt (line 10))
  Downloading openscm_units-0.6.0-py3-none-any.whl.metadata (3.9 kB)
Collecting seaborn (from -r requirements.txt (line 11))
  Downloading seaborn-0.13.2-py3-none-any.whl.metadata (5.4 kB)
Collecting python-dateutil>=2.8.2 (from pandas->-r requirements.txt (line 7))
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas->-r requirements.txt (line 7))
  Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas->-r requirements.txt (line 7))
  Downloading tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting appdirs>=1.4.4 (from pint>=0.19->-r requirements.txt (line 8))
  Downloading appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB)
Collecting typing-extensions (from pint>=0.19->-r requirements.txt (line 8))
  Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting flexcache>=0.3 (from pint>=0.19->-r requirements.txt (line 8))
  Downloading flexcache-0.3-py3-none-any.whl.metadata (7.0 kB)
Collecting flexparser>=0.3 (from pint>=0.19->-r requirements.txt (line 8))
  Downloading flexparser-0.3.1-py3-none-any.whl.metadata (18 kB)
Collecting globalwarmingpotentials (from openscm-units->-r requirements.txt (line 10))
  Downloading globalwarmingpotentials-0.11.1-py2.py3-none-any.whl.metadata (4.6 kB)
Collecting matplotlib!=3.6.1,>=3.4 (from seaborn->-r requirements.txt (line 11))
  Downloading matplotlib-3.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Collecting contourpy>=1.0.1 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading contourpy-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.8 kB)
Collecting cycler>=0.10 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading fonttools-4.53.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (162 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.2/162.2 kB 58.1 MB/s eta 0:00:00
Collecting kiwisolver>=1.3.1 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading kiwisolver-1.4.5-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (6.4 kB)
Requirement already satisfied: packaging>=20.0 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11)) (24.1)
Collecting pillow>=8 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading pillow-10.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas->-r requirements.txt (line 7))
  Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Downloading numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.3/19.3 MB 141.8 MB/s eta 0:00:00
Downloading scipy-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.6/38.6 MB 97.2 MB/s eta 0:00:00
Downloading pandas-2.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.0/13.0 MB 141.6 MB/s eta 0:00:00
Downloading Pint-0.24-py3-none-any.whl (300 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 300.7/300.7 kB 94.6 MB/s eta 0:00:00
Downloading pycountry-24.6.1-py3-none-any.whl (6.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.3/6.3 MB 181.2 MB/s eta 0:00:00
Downloading openscm_units-0.6.0-py3-none-any.whl (13 kB)
Downloading seaborn-0.13.2-py3-none-any.whl (294 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.9/294.9 kB 93.8 MB/s eta 0:00:00
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Downloading flexcache-0.3-py3-none-any.whl (13 kB)
Downloading flexparser-0.3.1-py3-none-any.whl (27 kB)
Downloading matplotlib-3.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.3/8.3 MB 177.7 MB/s eta 0:00:00
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 79.8 MB/s eta 0:00:00
Downloading pytz-2024.1-py2.py3-none-any.whl (505 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 505.5/505.5 kB 119.8 MB/s eta 0:00:00
Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 345.4/345.4 kB 99.0 MB/s eta 0:00:00
Downloading globalwarmingpotentials-0.11.1-py2.py3-none-any.whl (14 kB)
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Downloading contourpy-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (305 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 305.2/305.2 kB 98.6 MB/s eta 0:00:00
Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Downloading fonttools-4.53.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 169.1 MB/s eta 0:00:00
Downloading kiwisolver-1.4.5-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 155.1 MB/s eta 0:00:00
Downloading pillow-10.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (4.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 127.3 MB/s eta 0:00:00
Downloading pyparsing-3.1.2-py3-none-any.whl (103 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.2/103.2 kB 46.8 MB/s eta 0:00:00
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: pytz, globalwarmingpotentials, appdirs, tzdata, typing-extensions, six, pyparsing, pycountry, pillow, numpy, kiwisolver, fonttools, cycler, scipy, python-dateutil, flexparser, flexcache, contourpy, pint, pandas, matplotlib, seaborn, openscm-units
Successfully installed appdirs-1.4.4 contourpy-1.2.1 cycler-0.12.1 flexcache-0.3 flexparser-0.3.1 fonttools-4.53.0 globalwarmingpotentials-0.11.1 kiwisolver-1.4.5 matplotlib-3.9.0 numpy-2.0.0 openscm-units-0.6.0 pandas-2.2.2 pillow-10.3.0 pint-0.24 pycountry-24.6.1 pyparsing-3.1.2 python-dateutil-2.9.0.post0 pytz-2024.1 scipy-1.13.1 seaborn-0.13.2 six-1.16.0 typing-extensions-4.12.2 tzdata-2024.1
+ pip install coverage
Defaulting to user installation because normal site-packages is not writeable
Collecting coverage
  Downloading coverage-7.5.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.2 kB)
Downloading coverage-7.5.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (231 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 231.6/231.6 kB 32.4 MB/s eta 0:00:00
Installing collected packages: coverage
Successfully installed coverage-7.5.3
+ pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/build/OrgMatt
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: numpy>=1.20 in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.5.0) (2.0.0)
Requirement already satisfied: scipy in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.5.0) (1.13.1)
Requirement already satisfied: pandas in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.5.0) (2.2.2)
Requirement already satisfied: pint>=0.19 in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.5.0) (0.24)
Requirement already satisfied: pycountry in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.5.0) (24.6.1)
Requirement already satisfied: openscm-units in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.5.0) (0.6.0)
Requirement already satisfied: seaborn in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.5.0) (0.13.2)
Requirement already satisfied: appdirs>=1.4.4 in /home/build/.local/lib/python3.10/site-packages (from pint>=0.19->OrgMatt==0.5.0) (1.4.4)
Requirement already satisfied: typing-extensions in /home/build/.local/lib/python3.10/site-packages (from pint>=0.19->OrgMatt==0.5.0) (4.12.2)
Requirement already satisfied: flexcache>=0.3 in /home/build/.local/lib/python3.10/site-packages (from pint>=0.19->OrgMatt==0.5.0) (0.3)
Requirement already satisfied: flexparser>=0.3 in /home/build/.local/lib/python3.10/site-packages (from pint>=0.19->OrgMatt==0.5.0) (0.3.1)
Requirement already satisfied: globalwarmingpotentials in /home/build/.local/lib/python3.10/site-packages (from openscm-units->OrgMatt==0.5.0) (0.11.1)
Requirement already satisfied: python-dateutil>=2.8.2 in /home/build/.local/lib/python3.10/site-packages (from pandas->OrgMatt==0.5.0) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in /home/build/.local/lib/python3.10/site-packages (from pandas->OrgMatt==0.5.0) (2024.1)
Requirement already satisfied: tzdata>=2022.7 in /home/build/.local/lib/python3.10/site-packages (from pandas->OrgMatt==0.5.0) (2024.1)
Requirement already satisfied: matplotlib!=3.6.1,>=3.4 in /home/build/.local/lib/python3.10/site-packages (from seaborn->OrgMatt==0.5.0) (3.9.0)
Requirement already satisfied: contourpy>=1.0.1 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.5.0) (1.2.1)
Requirement already satisfied: cycler>=0.10 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.5.0) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.5.0) (4.53.0)
Requirement already satisfied: kiwisolver>=1.3.1 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.5.0) (1.4.5)
Requirement already satisfied: packaging>=20.0 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.5.0) (24.1)
Requirement already satisfied: pillow>=8 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.5.0) (10.3.0)
Requirement already satisfied: pyparsing>=2.3.1 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.5.0) (3.1.2)
Requirement already satisfied: six>=1.5 in /home/build/.local/lib/python3.10/site-packages (from python-dateutil>=2.8.2->pandas->OrgMatt==0.5.0) (1.16.0)
Building wheels for collected packages: OrgMatt
  Building wheel for OrgMatt (pyproject.toml): started
  Building wheel for OrgMatt (pyproject.toml): finished with status 'done'
  Created wheel for OrgMatt: filename=OrgMatt-0.5.0-py3-none-any.whl size=116175 sha256=c1dff3d272f1c29849e9882bb022f17e16a5d3d5d9b2f8f2d1e167150d745018
  Stored in directory: /tmp/pip-ephem-wheel-cache-iu7vsdhu/wheels/fa/c8/54/6668a436f152ec271fbc43c4d4817e40063b0c2195101cffa1
Successfully built OrgMatt
Installing collected packages: OrgMatt
Successfully installed OrgMatt-0.5.0
test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
+ cd OrgMatt
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/build/OrgMatt
configfile: pyproject.toml
collected 38 items

tests/test_data.py ...........                                           [ 28%]
tests/test_excreta.py F.                                                 [ 34%]
tests/test_food.py ...                                                   [ 42%]
tests/test_impacts.py ..                                                 [ 47%]
tests/test_metabolism.py FF.F..FF                                        [ 68%]
tests/test_nutrients.py ..F                                              [ 76%]
tests/test_plots.py .                                                    [ 78%]
tests/test_units.py ....                                                 [ 89%]
tests/test_utils.py .F..                                                 [100%]

=================================== FAILURES ===================================
____________________________ test_urine_production _____________________________

    def test_urine_production():
        '''
        Check the urine production function
        '''
        # check errors
        with pytest.raises(AssertionError):
            urine_from_population(100, 100)
    
        with pytest.raises(AssertionError):
            urine_from_population(100, 100, plop=2)
    
        # check that results are in the right range
        assert 0.5*L < urine_from_population(1, 1*day) < 2*L
    
        # check that the CI works
        u_ref = urine_from_population(1, 1*day, ci=68)
    
>       assert np.isnan(
            urine_from_population(1, 1*day, ci=68, sex="mixed", region="Africa")
        ).all(), "Expected NaNs (urine production, sex=mixed, region=Africa)"

tests/test_excreta.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/units.py:148: in check_dim
    res = f(*args, **kwargs)
orgmatt/excreta.py:76: in urine_from_population
    res = _rval(df_Ur, "amount", pop, ci, q)
orgmatt/_utils/tools.py:160: in return_values
    res = _val_from_arr(values, ci_value, q)
orgmatt/_utils/tools.py:57: in _val_from_arr
    return np.full(len(q) + (ci > 0), np.NaN) * unit
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'NaN'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards")
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards")
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr])
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}"
            )
E           AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?

../.local/lib/python3.10/site-packages/numpy/__init__.py:397: AttributeError
____________________________ test_body_composition _____________________________

    def test_body_composition():
        ''' Test results for body composition '''
        for nut in "NKP":
            default = body_composition(nut)
    
            assert np.isclose(
                default, body_composition(nut, group="adult"), rtol=0.05)
    
            if nut != "P":
                for g in ("kid", "teenager", "young adult"):
                    assert 0 < body_composition(nut, group=g) < 1
    
            # test auto-correct
>           assert np.isnan(body_composition(nut, age="8", region="Africa"))

tests/test_metabolism.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/metabolism/nutrient_flows.py:56: in body_composition
    return 0.01*return_values(df, "content", 1, ci_value=ci, q=q)
orgmatt/_utils/tools.py:160: in return_values
    res = _val_from_arr(values, ci_value, q)
orgmatt/_utils/tools.py:55: in _val_from_arr
    return np.NaN * unit
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'NaN'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards")
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards")
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr])
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}"
            )
E           AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?

../.local/lib/python3.10/site-packages/numpy/__init__.py:397: AttributeError
___________________________ test_nutrient_fractions ____________________________

    def test_nutrient_fractions():
        '''
        Check the function to compute the fraction of nutrients that is kept
        within the body or excreted in urine and feces.
        '''
        for nut in "NKP":
>           res = fraction_nutrient_excreta(nut, age="8")

tests/test_metabolism.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/metabolism/nutrient_flows.py:177: in fraction_nutrient_excreta
    frac -= fraction_nutrient_retention(nutrient, ci=ci, q=q, **kwargs)
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/metabolism/nutrient_flows.py:117: in fraction_nutrient_retention
    frac = 0.01*return_values(df, "amount", 1, ci_value=ci, q=q)
orgmatt/_utils/tools.py:160: in return_values
    res = _val_from_arr(values, ci_value, q)
orgmatt/_utils/tools.py:55: in _val_from_arr
    return np.NaN * unit
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'NaN'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards")
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards")
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr])
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}"
            )
E           AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?

../.local/lib/python3.10/site-packages/numpy/__init__.py:397: AttributeError
____________________________ test_unavailable_data _____________________________

    def test_unavailable_data():
        ''' Check corrections when data is unavailable '''
        kwargs = {"sex": "female", "diet": "vegan", "country": "DEU"}
        m = DataBasedMetabolicModel(age_group="senior", **kwargs)
    
        # for intake
>       assert np.isnan(nutrient_intake(1, 1*day, "N", group="senior", **kwargs).m)

tests/test_metabolism.py:118: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/units.py:148: in check_dim
    res = f(*args, **kwargs)
orgmatt/agrifood/human_consumption.py:142: in nutrient_intake
    nintake = return_values(df, "intake", pop, ci, q)
orgmatt/_utils/tools.py:160: in return_values
    res = _val_from_arr(values, ci_value, q)
orgmatt/_utils/tools.py:55: in _val_from_arr
    return np.NaN * unit
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'NaN'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards")
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards")
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr])
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}"
            )
E           AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?

../.local/lib/python3.10/site-packages/numpy/__init__.py:397: AttributeError
______________________________ test_flow_fraction ______________________________

    def test_flow_fraction():
        ''' Check data and models for flow fractions '''
        kwargs = {"sex": "female", "diet": "omnivorous"}
        m = DataBasedMetabolicModel(age_group="adult", **kwargs)
    
        # check that results are identical when data is available
        res_model = m.flow_fraction("N", flow="urine")
    
        assert m.last_correction_status == 0
    
        res_urine = fraction_nutrient_excreta(
            "N", "urine", sex="female", diet="omnivorous", group="adult")
    
        assert np.isclose(res_model, res_urine, rtol=0.05)
    
        res_feces = m.flow_fraction("N", flow="feces")
        res_ffunc = fraction_nutrient_excreta(
            "N", "feces", sex="female", diet="omnivorous", group="adult")
    
>       res_ffunc2 = fraction_nutrient_excreta(
            "N", "feces", sex="female", diet="omnivorous", age="33-34")

tests/test_metabolism.py:419: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/metabolism/nutrient_flows.py:193: in fraction_nutrient_excreta
    frac = 0.01*return_values(df, "amount", 1, ci, q)
orgmatt/_utils/tools.py:160: in return_values
    res = _val_from_arr(values, ci_value, q)
orgmatt/_utils/tools.py:55: in _val_from_arr
    return np.NaN * unit
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'NaN'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards")
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards")
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr])
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}"
            )
E           AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?

../.local/lib/python3.10/site-packages/numpy/__init__.py:397: AttributeError
__________________________ test_consistent_metabolism __________________________

    def test_consistent_metabolism():
        ''' Check the consistent metabolic model '''
        kwargs = {"sex": "female", "diet": "vegan", "country": "URY"}
        m = ConsistentMetabolicModel(age_group="kid", **kwargs)
    
        for nutrient in ("N", "P", "K"):
>           loss = m.flow_fraction(nutrient, flow="loss", ci=90)

tests/test_metabolism.py:474: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
orgmatt/metabolism/metabolic_model.py:456: in flow_fraction
    if len(self._get_flow("urine", nutrient)) == 0:
orgmatt/metabolism/metabolic_model.py:310: in _get_flow
    unit = ureg("g{nutrient}")
../.local/lib/python3.10/site-packages/pint/facets/plain/registry.py:1398: in parse_expression
    return build_eval_tree(gen).evaluate(_define_op)
../.local/lib/python3.10/site-packages/pint/pint_eval.py:384: in evaluate
    self.right.evaluate(define_op, bin_op, un_op),
../.local/lib/python3.10/site-packages/pint/pint_eval.py:395: in evaluate
    return define_op(self.left)
../.local/lib/python3.10/site-packages/pint/facets/plain/registry.py:1396: in _define_op
    return self._eval_token(s, case_sensitive=case_sensitive, **values)
../.local/lib/python3.10/site-packages/pint/facets/plain/registry.py:1305: in _eval_token
    {self.get_name(token_text, case_sensitive=case_sensitive): 1}
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pint.registry.UnitRegistry object at 0x7f2790a04100>
name_or_alias = 'nutrient', case_sensitive = None

    def get_name(self, name_or_alias: str, case_sensitive: bool | None = None) -> str:
        """Return the canonical name of a unit."""
    
        if name_or_alias == "dimensionless":
            return ""
    
        try:
            return self._units[name_or_alias].name
        except KeyError:
            pass
    
        candidates = self.parse_unit_name(name_or_alias, case_sensitive)
        if not candidates:
>           raise UndefinedUnitError(name_or_alias)
E           pint.errors.UndefinedUnitError: 'nutrient' is not defined in the unit registry

../.local/lib/python3.10/site-packages/pint/facets/plain/registry.py:658: UndefinedUnitError
____________________________ test_nutrient_content _____________________________

    def test_nutrient_content():
        ''' Check the nutrient content of urine and feces '''
        nitrogen_from_feces(1*kg, wet=False)
    
        # check that results are in the right range
        Nf = nitrogen_from_feces(1*kg)
        Nu = nitrogen_from_urine(1*L)
        Pu = phosphorus_from_urine(1*L)
        Pf = phosphorus_from_feces(1*kg)
        Nw = nutrient_from_biowaste(1*kg, "N")
        Pw = nutrient_from_biowaste(1*kg, "P")
        Kw = nutrient_from_biowaste(1*kg, "K")
    
        assert 10*gN < Nf < 30*gN
        assert 5*gN < Nu < 15*gN
        assert 1*gP < Pu < 2.5*gP
        assert 3*gP < Pf < 8*gP
        assert 2.9*gN < Nw < 10*gN
        assert 0.5*gP < Pw < 2*gP
        assert 2*gK < Kw < 10*gK
    
        # check that compound gives the same results
        Nf2 = nutrient_from_compound(1*kg, "N", "feces", group="adult")
        Pu2 = nutrient_from_compound(1*L, "P", "urine", group="adult")
        Pw2 = nutrient_from_compound(1*kg, "P", "biowaste")
    
        assert np.isclose(Nf, Nf2, rtol=0.05)
        assert np.isclose(Pu, Pu2, rtol=0.05)
        assert np.isclose(Pw, Pw2, rtol=0.05)
    
        # check that the CI works
        nitrogen_from_feces(1*kg, ci=68, group=None)
        nitrogen_from_urine(1*L, ci=68)
        phosphorus_from_urine(1*L, ci=68)
        nutrient_from_biowaste(1*kg, "N", waste_type="FoodResidues", ci=68)
    
        # check vector
        val = [1, 2, 5, 10]
        Nf_vec = nitrogen_from_feces(val*kg)
    
        for v, res in zip(val, Nf_vec):
            assert np.isclose(v*Nf, res, rtol=0.05)
    
        Nf_vec = nitrogen_from_feces(val*kg, ci=68)
    
        assert Nf_vec.shape == (len(val), 3)
    
        for v, res in zip(val, Nf_vec):
            assert np.isclose(v*Nf, res[1], rtol=0.05)
    
        # check kwargs
>       nutrient_from_biowaste(1*kg, "N", location="home", region="Europe")

tests/test_nutrients.py:158: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/units.py:148: in check_dim
    res = f(*args, **kwargs)
orgmatt/nutrients/all_nutrients.py:164: in nutrient_from_biowaste
    return ureg(unit) * return_values(df, "value", mass, ci, q)
orgmatt/_utils/tools.py:160: in return_values
    res = _val_from_arr(values, ci_value, q)
orgmatt/_utils/tools.py:55: in _val_from_arr
    return np.NaN * unit
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'NaN'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards")
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards")
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr])
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}"
            )
E           AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?

../.local/lib/python3.10/site-packages/numpy/__init__.py:397: AttributeError
______________________________ test_auto_correct _______________________________

    def test_auto_correct():
        ''' Test autocorrect features '''
>       res_basic = nitrogen_from_population(1, 1*year, age="12")

tests/test_utils.py:45: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
orgmatt/nutrients/nitrogen.py:64: in nitrogen_from_population
    return nutrient_from_population(
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/units.py:148: in check_dim
    res = f(*args, **kwargs)
orgmatt/nutrients/all_nutrients.py:83: in nutrient_from_population
    return factor * nutrient_intake(
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/_utils/tools.py:331: in auto_format
    raise exception
orgmatt/_utils/tools.py:274: in auto_format
    res = f(*args, **local_kwargs)
orgmatt/_utils/decorator.py:208: in fun
    return caller(func, *(extras + args), **kw)
orgmatt/units.py:148: in check_dim
    res = f(*args, **kwargs)
orgmatt/agrifood/human_consumption.py:142: in nutrient_intake
    nintake = return_values(df, "intake", pop, ci, q)
orgmatt/_utils/tools.py:160: in return_values
    res = _val_from_arr(values, ci_value, q)
orgmatt/_utils/tools.py:55: in _val_from_arr
    return np.NaN * unit
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

attr = 'NaN'

    def __getattr__(attr):
        # Warn for expired attributes
        import warnings
    
        if attr == "linalg":
            import numpy.linalg as linalg
            return linalg
        elif attr == "fft":
            import numpy.fft as fft
            return fft
        elif attr == "dtypes":
            import numpy.dtypes as dtypes
            return dtypes
        elif attr == "random":
            import numpy.random as random
            return random
        elif attr == "polynomial":
            import numpy.polynomial as polynomial
            return polynomial
        elif attr == "ma":
            import numpy.ma as ma
            return ma
        elif attr == "ctypeslib":
            import numpy.ctypeslib as ctypeslib
            return ctypeslib
        elif attr == "exceptions":
            import numpy.exceptions as exceptions
            return exceptions
        elif attr == "testing":
            import numpy.testing as testing
            return testing
        elif attr == "matlib":
            import numpy.matlib as matlib
            return matlib
        elif attr == "f2py":
            import numpy.f2py as f2py
            return f2py
        elif attr == "typing":
            import numpy.typing as typing
            return typing
        elif attr == "rec":
            import numpy.rec as rec
            return rec
        elif attr == "char":
            import numpy.char as char
            return char
        elif attr == "array_api":
            raise AttributeError("`numpy.array_api` is not available from "
                                 "numpy 2.0 onwards")
        elif attr == "core":
            import numpy.core as core
            return core
        elif attr == "strings":
            import numpy.strings as strings
            return strings
        elif attr == "distutils":
            if 'distutils' in __numpy_submodules__:
                import numpy.distutils as distutils
                return distutils
            else:
                raise AttributeError("`numpy.distutils` is not available from "
                                     "Python 3.12 onwards")
    
        if attr in __future_scalars__:
            # And future warnings for those that will change, but also give
            # the AttributeError
            warnings.warn(
                f"In the future `np.{attr}` will be defined as the "
                "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    
        if attr in __former_attrs__:
            raise AttributeError(__former_attrs__[attr])
    
        if attr in __expired_attributes__:
>           raise AttributeError(
                f"`np.{attr}` was removed in the NumPy 2.0 release. "
                f"{__expired_attributes__[attr]}"
            )
E           AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?

../.local/lib/python3.10/site-packages/numpy/__init__.py:397: AttributeError
----------------------------- Captured stderr call -----------------------------
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'age': '12'} from `kwargs` in function `fraction_nutrient_excreta`.
Final arguments used were: {'group': 'teenager'}.
------------------------------ Captured log call -------------------------------
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'age': '12'} from `kwargs` in function `fraction_nutrient_excreta`.
Final arguments used were: {'group': 'teenager'}.
=============================== warnings summary ===============================
orgmatt/units.py:23
  /home/build/OrgMatt/orgmatt/units.py:23: DeprecationWarning: This function will be removed in future versions of pint.
  Use ureg.formatter.default_format
    ureg.default_format = "~"  # abbreviated unit names

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_excreta.py::test_urine_production - AttributeError: `np.NaN...
FAILED tests/test_metabolism.py::test_body_composition - AttributeError: `np....
FAILED tests/test_metabolism.py::test_nutrient_fractions - AttributeError: `n...
FAILED tests/test_metabolism.py::test_unavailable_data - AttributeError: `np....
FAILED tests/test_metabolism.py::test_flow_fraction - AttributeError: `np.NaN...
FAILED tests/test_metabolism.py::test_consistent_metabolism - pint.errors.Und...
FAILED tests/test_nutrients.py::test_nutrient_content - AttributeError: `np.N...
FAILED tests/test_utils.py::test_auto_correct - AttributeError: `np.NaN` was ...
=================== 8 failed, 30 passed, 1 warning in 11.29s ===================
Build complete: failed 5 months ago (took 50 seconds)