musica 0.11.1.4__cp311-cp311-macosx_11_0_arm64.whl → 0.12.1__cp311-cp311-macosx_11_0_arm64.whl

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.

Potentially problematic release.


This version of musica might be problematic. Click here for more details.

Files changed (86) hide show
  1. musica/.dylibs/libaec.0.1.4.dylib +0 -0
  2. musica/.dylibs/libgcc_s.1.1.dylib +0 -0
  3. musica/.dylibs/libgfortran.5.dylib +0 -0
  4. musica/.dylibs/libhdf5.310.5.1.dylib +0 -0
  5. musica/.dylibs/libhdf5_hl.310.0.6.dylib +0 -0
  6. musica/.dylibs/libnetcdf.22.dylib +0 -0
  7. musica/.dylibs/libnetcdff.7.1.0.dylib +0 -0
  8. musica/.dylibs/libquadmath.0.dylib +0 -0
  9. musica/.dylibs/libsz.2.0.1.dylib +0 -0
  10. musica/.dylibs/libzstd.1.5.7.dylib +0 -0
  11. musica/CMakeLists.txt +28 -2
  12. musica/__init__.py +9 -49
  13. musica/_musica.cpython-311-darwin.so +0 -0
  14. musica/_version.py +1 -1
  15. musica/backend.py +41 -0
  16. musica/binding_common.cpp +23 -6
  17. musica/carma.cpp +911 -0
  18. musica/carma.py +1729 -0
  19. musica/constants.py +3 -0
  20. musica/cpu_binding.cpp +2 -1
  21. musica/cuda.py +4 -1
  22. musica/examples/__init__.py +1 -0
  23. musica/examples/carma_aluminum.py +123 -0
  24. musica/examples/carma_sulfate.py +245 -0
  25. musica/examples/examples.py +165 -0
  26. musica/examples/sulfate_box_model.py +439 -0
  27. musica/examples/ts1_latin_hypercube.py +245 -0
  28. musica/gpu_binding.cpp +2 -1
  29. musica/main.py +89 -0
  30. musica/mechanism_configuration/__init__.py +1 -0
  31. musica/mechanism_configuration/aqueous_equilibrium.py +274 -0
  32. musica/mechanism_configuration/arrhenius.py +307 -0
  33. musica/mechanism_configuration/branched.py +299 -0
  34. musica/mechanism_configuration/condensed_phase_arrhenius.py +309 -0
  35. musica/mechanism_configuration/condensed_phase_photolysis.py +88 -0
  36. musica/mechanism_configuration/emission.py +71 -0
  37. musica/mechanism_configuration/first_order_loss.py +174 -0
  38. musica/mechanism_configuration/henrys_law.py +44 -0
  39. musica/mechanism_configuration/mechanism_configuration.py +234 -0
  40. musica/mechanism_configuration/phase.py +47 -0
  41. musica/mechanism_configuration/photolysis.py +88 -0
  42. musica/mechanism_configuration/reactions.py +73 -0
  43. musica/mechanism_configuration/simpol_phase_transfer.py +217 -0
  44. musica/mechanism_configuration/species.py +91 -0
  45. musica/mechanism_configuration/surface.py +94 -0
  46. musica/mechanism_configuration/ternary_chemical_activation.py +352 -0
  47. musica/mechanism_configuration/troe.py +352 -0
  48. musica/mechanism_configuration/tunneling.py +250 -0
  49. musica/mechanism_configuration/user_defined.py +88 -0
  50. musica/mechanism_configuration/utils.py +10 -0
  51. musica/mechanism_configuration/wet_deposition.py +52 -0
  52. musica/mechanism_configuration.cpp +184 -96
  53. musica/musica.cpp +48 -61
  54. musica/test/examples/v1/full_configuration/full_configuration.json +67 -35
  55. musica/test/examples/v1/full_configuration/full_configuration.yaml +44 -20
  56. musica/test/{test_analytical.py → integration/test_analytical.py} +1 -2
  57. musica/test/integration/test_carma.py +227 -0
  58. musica/test/integration/test_carma_aluminum.py +11 -0
  59. musica/test/integration/test_carma_sulfate.py +16 -0
  60. musica/test/integration/test_sulfate_box_model.py +34 -0
  61. musica/test/integration/test_tuvx.py +62 -0
  62. musica/test/unit/test_parser.py +64 -0
  63. musica/test/unit/test_serializer.py +69 -0
  64. musica/test/{test_parser.py → unit/test_util_full_mechanism.py} +409 -404
  65. musica/tools/prepare_build_environment_linux.sh +39 -32
  66. musica/tools/prepare_build_environment_macos.sh +1 -0
  67. musica/tuvx.cpp +93 -0
  68. musica/tuvx.py +199 -0
  69. musica/types.py +104 -63
  70. {musica-0.11.1.4.dist-info → musica-0.12.1.dist-info}/METADATA +100 -84
  71. musica-0.12.1.dist-info/RECORD +79 -0
  72. {musica-0.11.1.4.dist-info → musica-0.12.1.dist-info}/WHEEL +1 -1
  73. musica-0.12.1.dist-info/entry_points.txt +3 -0
  74. musica-0.12.1.dist-info/licenses/AUTHORS.md +59 -0
  75. musica/mechanism_configuration.py +0 -1291
  76. musica/test/examples/v0/config.json +0 -7
  77. musica/test/examples/v0/config.yaml +0 -3
  78. musica/test/examples/v0/reactions.json +0 -193
  79. musica/test/examples/v0/reactions.yaml +0 -142
  80. musica/test/examples/v0/species.json +0 -40
  81. musica/test/examples/v0/species.yaml +0 -19
  82. musica/test/tuvx.py +0 -10
  83. musica/tools/prepare_build_environment_windows.sh +0 -22
  84. musica-0.11.1.4.dist-info/RECORD +0 -33
  85. /musica/test/{test_chapman.py → integration/test_chapman.py} +0 -0
  86. {musica-0.11.1.4.dist-info → musica-0.12.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "camp-files": [
3
- "species.json",
4
- "reactions.json"
5
- ]
6
- }
7
-
@@ -1,3 +0,0 @@
1
- camp-files:
2
- - species.yaml
3
- - reactions.yaml
@@ -1,193 +0,0 @@
1
- {
2
- "camp-data": [
3
- {
4
- "type": "MECHANISM",
5
- "name": "music box interactive configuration",
6
- "reactions": [
7
- {
8
- "type": "PHOTOLYSIS",
9
- "scaling factor": 1,
10
- "MUSICA name": "foo",
11
- "reactants": {
12
- "foo": {}
13
- },
14
- "products": {
15
- "buz": {
16
- "yield": 1
17
- },
18
- "bar": {
19
- "yield": 1
20
- }
21
- }
22
- },
23
- {
24
- "type": "ARRHENIUS",
25
- "A": 6e-34,
26
- "Ea": 0,
27
- "B": -2.4,
28
- "D": 300,
29
- "E": 0,
30
- "reactants": {
31
- "bar": {
32
- "qty": 1
33
- },
34
- "quuz": {
35
- "qty": 1
36
- },
37
- "M": {
38
- "qty": 1
39
- }
40
- },
41
- "products": {
42
- "baz": {
43
- "yield": 1
44
- },
45
- "M": {
46
- "yield": 1
47
- }
48
- }
49
- },
50
- {
51
- "type": "TROE",
52
- "k0_A": 2.5e-31,
53
- "k0_B": -1.8,
54
- "k0_C": 0,
55
- "kinf_A": 2.2e-11,
56
- "kinf_B": -0.7,
57
- "kinf_C": 0,
58
- "Fc": 0.6,
59
- "N": 1,
60
- "reactants": {
61
- "bar": {
62
- "qty": 1
63
- },
64
- "foo": {
65
- "qty": 1
66
- }
67
- },
68
- "products": {
69
- "baz": {
70
- "yield": 1
71
- }
72
- }
73
- },
74
- {
75
- "type": "EMISSION",
76
- "scaling factor": 1,
77
- "MUSICA name": "buz",
78
- "species": "buz"
79
- },
80
- {
81
- "type": "FIRST_ORDER_LOSS",
82
- "species": "bar",
83
- "MUSICA name": "bar",
84
- "scaling factor": 2.5
85
- },
86
- {
87
- "type": "TERNARY_CHEMICAL_ACTIVATION",
88
- "reactants": {
89
- "bar" : { },
90
- "baz" : { }
91
- },
92
- "products": {
93
- "bar": { "yield": 0.5 },
94
- "foo": { }
95
- },
96
- "k0_A": 32.1,
97
- "k0_B": -2.3,
98
- "k0_C": 102.3,
99
- "kinf_A": 63.4,
100
- "kinf_B": -1.3,
101
- "kinf_C": 908.5,
102
- "Fc": 1.3,
103
- "N": 32.1
104
- },
105
- {
106
- "type": "BRANCHED",
107
- "reactants": {
108
- "foo" : { },
109
- "quz" : { "qty" :2 }
110
- },
111
- "alkoxy products": {
112
- "bar": { "yield": 1.0 },
113
- "baz": { "yield": 3.2 }
114
- },
115
- "nitrate products": {
116
- "quz": { "yield": 1.0 }
117
- },
118
- "Y" : 42.3,
119
- "X" : 12.3,
120
- "a0" : 1.0e-5,
121
- "n" : 3
122
- },
123
- {
124
- "type": "WENNBERG_NO_RO2",
125
- "reactants": {
126
- "bar" : { },
127
- "baz" : { }
128
- },
129
- "alkoxy products": {
130
- "baz": { }
131
- },
132
- "nitrate products": {
133
- "bar": { "yield": 0.5 },
134
- "foo": { }
135
- },
136
- "Y" : 2.3e8,
137
- "X" : 0.32,
138
- "a0" : 0.423,
139
- "n" : 6
140
- },
141
- {
142
- "type": "TUNNELING",
143
- "reactants": {
144
- "bar" : { },
145
- "baz" : { }
146
- },
147
- "products": {
148
- "bar": { "yield": 0.5 },
149
- "foo": { }
150
- },
151
- "A": 32.1,
152
- "B": -2.3,
153
- "C": 102.3
154
- },
155
- {
156
- "type": "WENNBERG_TUNNELING",
157
- "reactants": {
158
- "bar2" : { },
159
- "baz2" : { }
160
- },
161
- "products": {
162
- "bar2": { "yield": 0.5 },
163
- "foo2": { }
164
- },
165
- "A": 2.1,
166
- "B": -1.3,
167
- "C": 12.3
168
- },
169
- {
170
- "type": "SURFACE",
171
- "gas-phase reactant": "bar",
172
- "gas-phase products": {
173
- "bar": { "yield": 0.5 },
174
- "foo": { }
175
- },
176
- "reaction probability": 0.5,
177
- "MUSICA name": "kbar"
178
- },
179
- {
180
- "type": "USER_DEFINED",
181
- "MUSICA name": "bar",
182
- "reactants": {
183
- "foo" : { "qty": 2 }
184
- },
185
- "products": {
186
- "bar" : { }
187
- },
188
- "scaling factor": 2.5
189
- }
190
- ]
191
- }
192
- ]
193
- }
@@ -1,142 +0,0 @@
1
- camp-data:
2
- - name: music box interactive configuration
3
- reactions:
4
- - MUSICA name: foo
5
- products:
6
- bar:
7
- yield: 1
8
- buz:
9
- yield: 1
10
- reactants:
11
- foo: {}
12
- scaling factor: 1
13
- type: PHOTOLYSIS
14
- - A: 6.0e-34
15
- B: -2.4
16
- D: 300
17
- E: 0
18
- Ea: 0
19
- products:
20
- M:
21
- yield: 1
22
- baz:
23
- yield: 1
24
- reactants:
25
- M:
26
- qty: 1
27
- bar:
28
- qty: 1
29
- quuz:
30
- qty: 1
31
- type: ARRHENIUS
32
- - Fc: 0.6
33
- N: 1
34
- k0_A: 2.5e-31
35
- k0_B: -1.8
36
- k0_C: 0
37
- kinf_A: 2.2e-11
38
- kinf_B: -0.7
39
- kinf_C: 0
40
- products:
41
- baz:
42
- yield: 1
43
- reactants:
44
- bar:
45
- qty: 1
46
- foo:
47
- qty: 1
48
- type: TROE
49
- - MUSICA name: buz
50
- scaling factor: 1
51
- species: buz
52
- type: EMISSION
53
- - MUSICA name: bar
54
- scaling factor: 2.5
55
- species: bar
56
- type: FIRST_ORDER_LOSS
57
- - Fc: 1.3
58
- N: 32.1
59
- k0_A: 32.1
60
- k0_B: -2.3
61
- k0_C: 102.3
62
- kinf_A: 63.4
63
- kinf_B: -1.3
64
- kinf_C: 908.5
65
- products:
66
- bar:
67
- yield: 0.5
68
- foo: {}
69
- reactants:
70
- bar: {}
71
- baz: {}
72
- type: TERNARY_CHEMICAL_ACTIVATION
73
- - X: 12.3
74
- Y: 42.3
75
- a0: 1.0e-05
76
- alkoxy products:
77
- bar:
78
- yield: 1.0
79
- baz:
80
- yield: 3.2
81
- n: 3
82
- nitrate products:
83
- quz:
84
- yield: 1.0
85
- reactants:
86
- foo: {}
87
- quz:
88
- qty: 2
89
- type: BRANCHED
90
- - X: 0.32
91
- Y: 230000000.0
92
- a0: 0.423
93
- alkoxy products:
94
- baz: {}
95
- n: 6
96
- nitrate products:
97
- bar:
98
- yield: 0.5
99
- foo: {}
100
- reactants:
101
- bar: {}
102
- baz: {}
103
- type: WENNBERG_NO_RO2
104
- - A: 32.1
105
- B: -2.3
106
- C: 102.3
107
- products:
108
- bar:
109
- yield: 0.5
110
- foo: {}
111
- reactants:
112
- bar: {}
113
- baz: {}
114
- type: TUNNELING
115
- - A: 2.1
116
- B: -1.3
117
- C: 12.3
118
- products:
119
- bar2:
120
- yield: 0.5
121
- foo2: {}
122
- reactants:
123
- bar2: {}
124
- baz2: {}
125
- type: WENNBERG_TUNNELING
126
- - MUSICA name: kbar
127
- gas-phase products:
128
- bar:
129
- yield: 0.5
130
- foo: {}
131
- gas-phase reactant: bar
132
- reaction probability: 0.5
133
- type: SURFACE
134
- - MUSICA name: bar
135
- products:
136
- bar: {}
137
- reactants:
138
- foo:
139
- qty: 2
140
- scaling factor: 2.5
141
- type: USER_DEFINED
142
- type: MECHANISM
@@ -1,40 +0,0 @@
1
- {
2
- "camp-data": [
3
- {
4
- "name": "foo",
5
- "type": "CHEM_SPEC"
6
- },
7
- {
8
- "name": "bar",
9
- "type": "CHEM_SPEC"
10
- },
11
- {
12
- "name": "buz",
13
- "type": "CHEM_SPEC"
14
- },
15
- {
16
- "name": "quuz",
17
- "type": "CHEM_SPEC"
18
- },
19
- {
20
- "name": "foo2",
21
- "type": "CHEM_SPEC"
22
- },
23
- {
24
- "name": "bar2",
25
- "type": "CHEM_SPEC"
26
- },
27
- {
28
- "name": "baz",
29
- "type": "CHEM_SPEC"
30
- },
31
- {
32
- "name": "baz2",
33
- "type": "CHEM_SPEC"
34
- },
35
- {
36
- "name": "M",
37
- "type": "CHEM_SPEC"
38
- }
39
- ]
40
- }
@@ -1,19 +0,0 @@
1
- camp-data:
2
- - name: foo
3
- type: CHEM_SPEC
4
- - name: bar
5
- type: CHEM_SPEC
6
- - name: buz
7
- type: CHEM_SPEC
8
- - name: quuz
9
- type: CHEM_SPEC
10
- - name: foo2
11
- type: CHEM_SPEC
12
- - name: bar2
13
- type: CHEM_SPEC
14
- - name: baz
15
- type: CHEM_SPEC
16
- - name: baz2
17
- type: CHEM_SPEC
18
- - name: M
19
- type: CHEM_SPEC
musica/test/tuvx.py DELETED
@@ -1,10 +0,0 @@
1
- import pytest
2
- import musica
3
-
4
-
5
- def test_tuvx_run():
6
- assert 1 != 0
7
-
8
-
9
- if __name__ == '__main__':
10
- pytest.main()
@@ -1,22 +0,0 @@
1
- #! /bin/bash
2
-
3
- set -e
4
- set -x
5
-
6
- CUDA_ROOT="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8"
7
- # curl --netrc-optional -L -nv -o cuda.exe https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_537.13_windows.exe
8
- curl --netrc-optional -L -nv -o cuda.exe https://developer.download.nvidia.com/compute/cuda/12.8.1/local_installers/cuda_12.8.1_572.61_windows.exe
9
- ./cuda.exe -s nvcc_12.8 cudart_12.8 cublas_dev_12.8 curand_dev_12.8
10
- rm cuda.exe
11
-
12
- export CUDA_PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8"
13
- export PATH="$CUDA_PATH/bin:$PATH"
14
-
15
- ls "c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8/extras/visual_studio_integration/MSBuildExtensions"
16
- ls "c/Program Files (x86)/Microsoft Visual Studio/"
17
-
18
- # choco install cuda
19
-
20
- ls "$CUDA_PATH"
21
- ls "$CUDA_PATH/bin"
22
- which nvcc.exe
@@ -1,33 +0,0 @@
1
- musica-0.11.1.4.dist-info/RECORD,,
2
- musica-0.11.1.4.dist-info/WHEEL,sha256=Al6NhbNhkOBIudbJniTjEgilBk2XX2EVq-4ej65_FoE,114
3
- musica-0.11.1.4.dist-info/METADATA,sha256=3S0lnuWJjva1wxEFXEmDsnNI1NO0Y1TY1W3RXgAJUoo,25120
4
- musica-0.11.1.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
- musica/CMakeLists.txt,sha256=E5Z8tLfxUc0RAma1vKtN2-2s3CqHog2njYje9qHehQc,1050
6
- musica/mechanism_configuration.py,sha256=UCwPLKznU5CWMwj0URd6xqn78DNQFecxcmD7MX3wc7M,57985
7
- musica/_version.py,sha256=uIJChf8jZtk47zX1PsPRzp-TnVMaygs153ACjtBx3Hs,21
8
- musica/_musica.cpython-311-darwin.so,sha256=mGxss8IH9M4BCZLinGwoGqH3DGwu7h80Z_-rGF1Oe6g,1559600
9
- musica/binding_common.cpp,sha256=40rvAVZQkOloAKXNhUngkiZNaD7LfHE8jnCcoOOXAak,560
10
- musica/__init__.py,sha256=TXWCmKd4hBa09jf9917-cM5_DQ0Qcio__a1ZkfysT5k,1748
11
- musica/cpu_binding.cpp,sha256=nOLBGDWvvtxeAyIbeP3bXIeB_xzZoU_ALduHanHjR0Q,224
12
- musica/types.py,sha256=cycZ26-2q7mzx_oMnXWrTEvz6hEJnog5OQJoyizn6oA,14870
13
- musica/gpu_binding.cpp,sha256=wWkM_J_2Ky0OawxEXkdvPCzctfSsiH7THs2cVkr0S2s,228
14
- musica/cuda.py,sha256=A0U0plsFuQgezWrwN8217kkC5URxjlsKI0ymYJCSdDE,224
15
- musica/cuda.cpp,sha256=qQOLKTUOB83gE-963rT579Me-NrqMUWnXDKmpTPMVFg,346
16
- musica/binding_common.hpp,sha256=YVG7TS1JeVC4W_yisV4kL61qo3N6Dt6JdAh9bdr6z2w,102
17
- musica/mechanism_configuration.cpp,sha256=E7GGeftgQGL303nsk2C7pwYpPiMAQcuxdbadohHb1QM,27100
18
- musica/musica.cpp,sha256=cMi5OfncDV_ROlhjCSvvGtUHWBl_oYcUwTu4KFLTBjg,8400
19
- musica/tools/prepare_build_environment_windows.sh,sha256=zMY_RIerqfMC1VlfpZ2KjjDWfBUOvvx8oRNk_jJhmII,826
20
- musica/tools/prepare_build_environment_linux.sh,sha256=yKjBD_eFMMvqth_PSF1qzmr7VLSMWiPufBh1inhuIRs,1457
21
- musica/tools/repair_wheel_gpu.sh,sha256=GJcKUJ2n9KMsj3QC5Shxt_ks9uFu2f9Than-4vVhG9U,1485
22
- musica/test/test_parser.py,sha256=6jVyezmjArO3C0Alia3et_lpLnuaspw1b_HLYrYl0GE,24285
23
- musica/test/test_chapman.py,sha256=gOISpApVIMLCEv6W0Hq1yNGF0xu2MlZMHQQhOGPmoQI,3512
24
- musica/test/tuvx.py,sha256=rWvBcG6cgLJylqkf8M0MFMKT2AkyoaZlGdaKjVSbCR8,116
25
- musica/test/test_analytical.py,sha256=aTXQ3OQrThHEgDruaPvLjbMPU_wP2sZohfHnOqmBRJw,13800
26
- musica/test/examples/v1/full_configuration/full_configuration.yaml,sha256=s9Go7AQv9OFQ7zVb1k4wmDj2vpHYzVCTRqi8JZTHlUM,5235
27
- musica/test/examples/v1/full_configuration/full_configuration.json,sha256=7AqPhTHodSjtV8LOPoUsA9MtCu_Xc28RVOlhNGPI9GQ,8807
28
- musica/test/examples/v0/species.json,sha256=xKTcwh9QV9sRjLPK9GvGEnatBrRPbP857NmPG0bCXqU,565
29
- musica/test/examples/v0/species.yaml,sha256=vUYTs7bp2AYVWHDgXBFxnCkmqdO6ysJ_ulOQTAoKa1M,283
30
- musica/test/examples/v0/config.json,sha256=7s6g5jxH2GiEiRcZmO13IJ5k4walg1C9t-dQr9o45U4,79
31
- musica/test/examples/v0/config.yaml,sha256=GgA18mP8ZCzOdY-AlAePK48M05PJFPeWCk-IfrPN_VE,44
32
- musica/test/examples/v0/reactions.json,sha256=7WJhItBPtGu89vLcPMK6izW8BvwUAIjfzqwjtDmfPPg,4188
33
- musica/test/examples/v0/reactions.yaml,sha256=uEuQOz5i7vGyn0G7KsmdWv23V2Gn0QUmexrK030CFlo,2266