chita 0.0.1__tar.gz

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.
Files changed (34) hide show
  1. chita-0.0.1/Cargo.lock +433 -0
  2. chita-0.0.1/Cargo.toml +19 -0
  3. chita-0.0.1/LICENSE +28 -0
  4. chita-0.0.1/PKG-INFO +261 -0
  5. chita-0.0.1/README.md +235 -0
  6. chita-0.0.1/crates/chita-cli/Cargo.toml +20 -0
  7. chita-0.0.1/crates/chita-cli/src/display.rs +526 -0
  8. chita-0.0.1/crates/chita-cli/src/lib.rs +271 -0
  9. chita-0.0.1/crates/chita-cli/src/main.rs +5 -0
  10. chita-0.0.1/crates/chita-cli/tests/cli.rs +67 -0
  11. chita-0.0.1/crates/chita-core/Cargo.toml +13 -0
  12. chita-0.0.1/crates/chita-core/examples/kernels.rs +51 -0
  13. chita-0.0.1/crates/chita-core/examples/profile.rs +22 -0
  14. chita-0.0.1/crates/chita-core/src/background.rs +628 -0
  15. chita-0.0.1/crates/chita-core/src/catalog.rs +172 -0
  16. chita-0.0.1/crates/chita-core/src/deblend.rs +912 -0
  17. chita-0.0.1/crates/chita-core/src/filter.rs +329 -0
  18. chita-0.0.1/crates/chita-core/src/fits.rs +478 -0
  19. chita-0.0.1/crates/chita-core/src/forced.rs +206 -0
  20. chita-0.0.1/crates/chita-core/src/label.rs +378 -0
  21. chita-0.0.1/crates/chita-core/src/lib.rs +81 -0
  22. chita-0.0.1/crates/chita-core/src/measure.rs +1135 -0
  23. chita-0.0.1/crates/chita-core/src/multiband.rs +887 -0
  24. chita-0.0.1/crates/chita-core/src/pipeline.rs +1529 -0
  25. chita-0.0.1/crates/chita-core/src/psf.rs +294 -0
  26. chita-0.0.1/crates/chita-core/src/stats.rs +411 -0
  27. chita-0.0.1/crates/chita-core/src/subsource.rs +1126 -0
  28. chita-0.0.1/crates/chita-py/Cargo.toml +20 -0
  29. chita-0.0.1/crates/chita-py/python/chita/__init__.py +445 -0
  30. chita-0.0.1/crates/chita-py/python/chita/__main__.py +5 -0
  31. chita-0.0.1/crates/chita-py/python/chita/_cli.py +14 -0
  32. chita-0.0.1/crates/chita-py/src/lib.rs +422 -0
  33. chita-0.0.1/crates/chita-py/tests/test_extract.py +144 -0
  34. chita-0.0.1/pyproject.toml +41 -0
chita-0.0.1/Cargo.lock ADDED
@@ -0,0 +1,433 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "anstream"
7
+ version = "1.0.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
10
+ dependencies = [
11
+ "anstyle",
12
+ "anstyle-parse",
13
+ "anstyle-query",
14
+ "anstyle-wincon",
15
+ "colorchoice",
16
+ "is_terminal_polyfill",
17
+ "utf8parse",
18
+ ]
19
+
20
+ [[package]]
21
+ name = "anstyle"
22
+ version = "1.0.14"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
25
+
26
+ [[package]]
27
+ name = "anstyle-parse"
28
+ version = "1.0.0"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
31
+ dependencies = [
32
+ "utf8parse",
33
+ ]
34
+
35
+ [[package]]
36
+ name = "anstyle-query"
37
+ version = "1.1.5"
38
+ source = "registry+https://github.com/rust-lang/crates.io-index"
39
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
40
+ dependencies = [
41
+ "windows-sys",
42
+ ]
43
+
44
+ [[package]]
45
+ name = "anstyle-wincon"
46
+ version = "3.0.11"
47
+ source = "registry+https://github.com/rust-lang/crates.io-index"
48
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
49
+ dependencies = [
50
+ "anstyle",
51
+ "once_cell_polyfill",
52
+ "windows-sys",
53
+ ]
54
+
55
+ [[package]]
56
+ name = "autocfg"
57
+ version = "1.5.1"
58
+ source = "registry+https://github.com/rust-lang/crates.io-index"
59
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
60
+
61
+ [[package]]
62
+ name = "chita-cli"
63
+ version = "0.0.1"
64
+ dependencies = [
65
+ "chita-core",
66
+ "clap",
67
+ "libc",
68
+ ]
69
+
70
+ [[package]]
71
+ name = "chita-core"
72
+ version = "0.0.1"
73
+ dependencies = [
74
+ "rayon",
75
+ ]
76
+
77
+ [[package]]
78
+ name = "chita-py"
79
+ version = "0.0.1"
80
+ dependencies = [
81
+ "chita-cli",
82
+ "chita-core",
83
+ "numpy",
84
+ "pyo3",
85
+ "rayon",
86
+ ]
87
+
88
+ [[package]]
89
+ name = "clap"
90
+ version = "4.6.7"
91
+ source = "registry+https://github.com/rust-lang/crates.io-index"
92
+ checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
93
+ dependencies = [
94
+ "clap_builder",
95
+ "clap_derive",
96
+ ]
97
+
98
+ [[package]]
99
+ name = "clap_builder"
100
+ version = "4.6.7"
101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
102
+ checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
103
+ dependencies = [
104
+ "anstream",
105
+ "anstyle",
106
+ "clap_lex",
107
+ "strsim",
108
+ ]
109
+
110
+ [[package]]
111
+ name = "clap_derive"
112
+ version = "4.6.7"
113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
114
+ checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
115
+ dependencies = [
116
+ "heck",
117
+ "proc-macro2",
118
+ "quote",
119
+ "syn",
120
+ ]
121
+
122
+ [[package]]
123
+ name = "clap_lex"
124
+ version = "1.1.1"
125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
126
+ checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
127
+
128
+ [[package]]
129
+ name = "colorchoice"
130
+ version = "1.0.5"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
133
+
134
+ [[package]]
135
+ name = "crossbeam-deque"
136
+ version = "0.8.8"
137
+ source = "registry+https://github.com/rust-lang/crates.io-index"
138
+ checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
139
+ dependencies = [
140
+ "crossbeam-epoch",
141
+ "crossbeam-utils",
142
+ ]
143
+
144
+ [[package]]
145
+ name = "crossbeam-epoch"
146
+ version = "0.9.21"
147
+ source = "registry+https://github.com/rust-lang/crates.io-index"
148
+ checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
149
+ dependencies = [
150
+ "crossbeam-utils",
151
+ ]
152
+
153
+ [[package]]
154
+ name = "crossbeam-utils"
155
+ version = "0.8.23"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
158
+
159
+ [[package]]
160
+ name = "either"
161
+ version = "1.19.0"
162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
163
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
164
+
165
+ [[package]]
166
+ name = "heck"
167
+ version = "0.5.0"
168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
169
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
170
+
171
+ [[package]]
172
+ name = "is_terminal_polyfill"
173
+ version = "1.70.2"
174
+ source = "registry+https://github.com/rust-lang/crates.io-index"
175
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
176
+
177
+ [[package]]
178
+ name = "libc"
179
+ version = "0.2.191"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
182
+
183
+ [[package]]
184
+ name = "matrixmultiply"
185
+ version = "0.3.11"
186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
187
+ checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
188
+ dependencies = [
189
+ "autocfg",
190
+ "rawpointer",
191
+ ]
192
+
193
+ [[package]]
194
+ name = "ndarray"
195
+ version = "0.17.2"
196
+ source = "registry+https://github.com/rust-lang/crates.io-index"
197
+ checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
198
+ dependencies = [
199
+ "matrixmultiply",
200
+ "num-complex",
201
+ "num-integer",
202
+ "num-traits",
203
+ "portable-atomic",
204
+ "portable-atomic-util",
205
+ "rawpointer",
206
+ ]
207
+
208
+ [[package]]
209
+ name = "num-complex"
210
+ version = "0.4.6"
211
+ source = "registry+https://github.com/rust-lang/crates.io-index"
212
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
213
+ dependencies = [
214
+ "num-traits",
215
+ ]
216
+
217
+ [[package]]
218
+ name = "num-integer"
219
+ version = "0.1.47"
220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
221
+ checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
222
+ dependencies = [
223
+ "num-traits",
224
+ ]
225
+
226
+ [[package]]
227
+ name = "num-traits"
228
+ version = "0.2.19"
229
+ source = "registry+https://github.com/rust-lang/crates.io-index"
230
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
231
+ dependencies = [
232
+ "autocfg",
233
+ ]
234
+
235
+ [[package]]
236
+ name = "numpy"
237
+ version = "0.30.0"
238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
239
+ checksum = "aa0b9111761885449e894981fa8051dcf69e0bd114aecbd4bcdd830b6be4ed92"
240
+ dependencies = [
241
+ "libc",
242
+ "ndarray",
243
+ "num-complex",
244
+ "num-integer",
245
+ "num-traits",
246
+ "pyo3",
247
+ "pyo3-build-config",
248
+ "rustc-hash",
249
+ ]
250
+
251
+ [[package]]
252
+ name = "once_cell"
253
+ version = "1.21.4"
254
+ source = "registry+https://github.com/rust-lang/crates.io-index"
255
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
256
+
257
+ [[package]]
258
+ name = "once_cell_polyfill"
259
+ version = "1.70.2"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
262
+
263
+ [[package]]
264
+ name = "portable-atomic"
265
+ version = "1.15.0"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
268
+
269
+ [[package]]
270
+ name = "portable-atomic-util"
271
+ version = "0.2.8"
272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
273
+ checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
274
+ dependencies = [
275
+ "portable-atomic",
276
+ ]
277
+
278
+ [[package]]
279
+ name = "proc-macro2"
280
+ version = "1.0.107"
281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
282
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
283
+ dependencies = [
284
+ "unicode-ident",
285
+ ]
286
+
287
+ [[package]]
288
+ name = "pyo3"
289
+ version = "0.30.1"
290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
291
+ checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
292
+ dependencies = [
293
+ "libc",
294
+ "once_cell",
295
+ "portable-atomic",
296
+ "pyo3-build-config",
297
+ "pyo3-ffi",
298
+ "pyo3-macros",
299
+ ]
300
+
301
+ [[package]]
302
+ name = "pyo3-build-config"
303
+ version = "0.30.1"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
306
+ dependencies = [
307
+ "target-lexicon",
308
+ ]
309
+
310
+ [[package]]
311
+ name = "pyo3-ffi"
312
+ version = "0.30.1"
313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
314
+ checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
315
+ dependencies = [
316
+ "libc",
317
+ "pyo3-build-config",
318
+ ]
319
+
320
+ [[package]]
321
+ name = "pyo3-macros"
322
+ version = "0.30.1"
323
+ source = "registry+https://github.com/rust-lang/crates.io-index"
324
+ checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
325
+ dependencies = [
326
+ "proc-macro2",
327
+ "pyo3-macros-backend",
328
+ "quote",
329
+ "syn",
330
+ ]
331
+
332
+ [[package]]
333
+ name = "pyo3-macros-backend"
334
+ version = "0.30.1"
335
+ source = "registry+https://github.com/rust-lang/crates.io-index"
336
+ checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
337
+ dependencies = [
338
+ "heck",
339
+ "proc-macro2",
340
+ "quote",
341
+ "syn",
342
+ ]
343
+
344
+ [[package]]
345
+ name = "quote"
346
+ version = "1.0.47"
347
+ source = "registry+https://github.com/rust-lang/crates.io-index"
348
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
349
+ dependencies = [
350
+ "proc-macro2",
351
+ ]
352
+
353
+ [[package]]
354
+ name = "rawpointer"
355
+ version = "0.2.1"
356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
357
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
358
+
359
+ [[package]]
360
+ name = "rayon"
361
+ version = "1.12.0"
362
+ source = "registry+https://github.com/rust-lang/crates.io-index"
363
+ checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
364
+ dependencies = [
365
+ "either",
366
+ "rayon-core",
367
+ ]
368
+
369
+ [[package]]
370
+ name = "rayon-core"
371
+ version = "1.13.0"
372
+ source = "registry+https://github.com/rust-lang/crates.io-index"
373
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
374
+ dependencies = [
375
+ "crossbeam-deque",
376
+ "crossbeam-utils",
377
+ ]
378
+
379
+ [[package]]
380
+ name = "rustc-hash"
381
+ version = "2.1.3"
382
+ source = "registry+https://github.com/rust-lang/crates.io-index"
383
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
384
+
385
+ [[package]]
386
+ name = "strsim"
387
+ version = "0.11.1"
388
+ source = "registry+https://github.com/rust-lang/crates.io-index"
389
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
390
+
391
+ [[package]]
392
+ name = "syn"
393
+ version = "3.0.9"
394
+ source = "registry+https://github.com/rust-lang/crates.io-index"
395
+ checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
396
+ dependencies = [
397
+ "proc-macro2",
398
+ "quote",
399
+ "unicode-ident",
400
+ ]
401
+
402
+ [[package]]
403
+ name = "target-lexicon"
404
+ version = "0.13.5"
405
+ source = "registry+https://github.com/rust-lang/crates.io-index"
406
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
407
+
408
+ [[package]]
409
+ name = "unicode-ident"
410
+ version = "1.0.27"
411
+ source = "registry+https://github.com/rust-lang/crates.io-index"
412
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
413
+
414
+ [[package]]
415
+ name = "utf8parse"
416
+ version = "0.2.2"
417
+ source = "registry+https://github.com/rust-lang/crates.io-index"
418
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
419
+
420
+ [[package]]
421
+ name = "windows-link"
422
+ version = "0.2.1"
423
+ source = "registry+https://github.com/rust-lang/crates.io-index"
424
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
425
+
426
+ [[package]]
427
+ name = "windows-sys"
428
+ version = "0.61.2"
429
+ source = "registry+https://github.com/rust-lang/crates.io-index"
430
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
431
+ dependencies = [
432
+ "windows-link",
433
+ ]
chita-0.0.1/Cargo.toml ADDED
@@ -0,0 +1,19 @@
1
+ [workspace]
2
+ resolver = "2"
3
+ members = ["crates/chita-core", "crates/chita-cli", "crates/chita-py"]
4
+
5
+ [workspace.package]
6
+ version = "0.0.1"
7
+ edition = "2021"
8
+ rust-version = "1.75"
9
+ license = "BSD-3-Clause"
10
+ authors = ["Mingyu Li"]
11
+ repository = "https://github.com/lmytime/chita"
12
+
13
+ [profile.release]
14
+ opt-level = 3
15
+ lto = "fat"
16
+ codegen-units = 1
17
+
18
+ [profile.bench]
19
+ inherits = "release"
chita-0.0.1/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Mingyu Li
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.