microlens-submit 0.16.0__py3-none-any.whl → 0.16.1__py3-none-any.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.
@@ -5,7 +5,7 @@ validate, and export a challenge submission using either the Python API or
5
5
  the command line interface.
6
6
  """
7
7
 
8
- __version__ = "0.16.0"
8
+ __version__ = "0.16.1"
9
9
 
10
10
  from .models import Event, Solution, Submission
11
11
  from .utils import load
@@ -11,8 +11,12 @@ import webbrowser
11
11
  from datetime import datetime
12
12
  from pathlib import Path
13
13
 
14
- import importlib_resources
14
+ try: # Prefer stdlib importlib.resources when available (Python >= 3.9)
15
+ import importlib.resources as importlib_resources
16
+ except ImportError: # pragma: no cover - fallback for Python < 3.9
17
+ import importlib_resources
15
18
 
19
+ from .. import __version__
16
20
  from ..models.submission import Submission
17
21
  from .utils import extract_github_repo_name, format_hardware_info
18
22
 
@@ -485,7 +489,7 @@ style="width: {progress_percentage}%"></div>
485
489
 
486
490
  <!-- Footer -->
487
491
  <div class="text-sm text-gray-500 text-center pt-8 pb-6">
488
- Generated by microlens-submit v0.16.0 on
492
+ Generated by microlens-submit v{__version__} on
489
493
  {datetime.now().strftime('%Y-%m-%d %H:%M:%S UTC')}
490
494
  </div>
491
495
 
@@ -9,6 +9,7 @@ evaluator-only visualizations.
9
9
  from datetime import datetime
10
10
  from pathlib import Path
11
11
 
12
+ from .. import __version__
12
13
  from ..models import Event, Submission
13
14
  from .solution_page import generate_solution_page
14
15
 
@@ -357,7 +358,7 @@ Event {event.event_id}. Points colored by Relative Probability (Evaluator View).
357
358
 
358
359
  <!-- Footer -->
359
360
  <div class='text-sm text-gray-500 text-center pt-8 border-t border-gray-200 mt-10'>
360
- Generated by microlens-submit v0.13.0 on {datetime.now().strftime('%Y-%m-%d %H:%M:%S UTC')}
361
+ Generated by microlens-submit v{__version__} on {datetime.now().strftime('%Y-%m-%d %H:%M:%S UTC')}
361
362
  </div>
362
363
 
363
364
  <!-- Regex Finish -->
@@ -11,6 +11,7 @@ from pathlib import Path
11
11
 
12
12
  import markdown
13
13
 
14
+ from .. import __version__
14
15
  from ..models.event import Event
15
16
  from ..models.solution import Solution
16
17
  from ..models.submission import Submission
@@ -521,7 +522,7 @@ def _generate_solution_page_content(solution: Solution, event: Event, submission
521
522
 
522
523
  <!-- Footer -->
523
524
  <div class='text-sm text-gray-500 text-center pt-8 border-t border-gray-200 mt-10'>
524
- Generated by microlens-submit v0.16.0 on {datetime.now().strftime('%Y-%m-%d %H:%M:%S UTC')}
525
+ Generated by microlens-submit v{__version__} on {datetime.now().strftime('%Y-%m-%d %H:%M:%S UTC')}
525
526
  </div>
526
527
 
527
528
  <!-- Regex Finish -->
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: microlens-submit
3
- Version: 0.16.0
3
+ Version: 0.16.1
4
4
  Summary: A tool for managing and submitting microlensing solutions
5
5
  Home-page: https://github.com/AmberLee2427/microlens-submit
6
6
  Author: Amber Malpas
@@ -24,23 +24,27 @@ Classifier: Topic :: Scientific/Engineering :: Physics
24
24
  Requires-Python: >=3.8
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE
27
- Requires-Dist: pydantic >=2.0.0
28
- Requires-Dist: typer[all] >=0.9.0
29
- Requires-Dist: rich >=13.0.0
30
- Requires-Dist: pyyaml >=6.0
31
- Requires-Dist: markdown >=3.4.0
32
- Requires-Dist: importlib-resources >=1.0.0 ; python_version < "3.9"
27
+ Requires-Dist: pydantic>=2.0.0
28
+ Requires-Dist: typer[all]>=0.9.0
29
+ Requires-Dist: rich>=13.0.0
30
+ Requires-Dist: pyyaml>=6.0
31
+ Requires-Dist: markdown>=3.4.0
32
+ Requires-Dist: importlib_resources>=1.0.0; python_version < "3.9"
33
33
  Provides-Extra: dev
34
- Requires-Dist: pytest ; extra == 'dev'
35
- Requires-Dist: pytest-cov ; extra == 'dev'
36
- Requires-Dist: build ; extra == 'dev'
37
- Requires-Dist: twine ; extra == 'dev'
38
- Requires-Dist: pre-commit ; extra == 'dev'
39
- Requires-Dist: black ; extra == 'dev'
40
- Requires-Dist: isort ; extra == 'dev'
41
- Requires-Dist: sphinx ; extra == 'dev'
42
- Requires-Dist: sphinx-rtd-theme ; extra == 'dev'
43
- Requires-Dist: importlib-resources ; extra == 'dev'
34
+ Requires-Dist: pytest; extra == "dev"
35
+ Requires-Dist: pytest-cov; extra == "dev"
36
+ Requires-Dist: build; extra == "dev"
37
+ Requires-Dist: twine; extra == "dev"
38
+ Requires-Dist: pre-commit; extra == "dev"
39
+ Requires-Dist: black; extra == "dev"
40
+ Requires-Dist: isort; extra == "dev"
41
+ Requires-Dist: sphinx; extra == "dev"
42
+ Requires-Dist: sphinx_rtd_theme; extra == "dev"
43
+ Requires-Dist: importlib_resources; extra == "dev"
44
+ Dynamic: author
45
+ Dynamic: home-page
46
+ Dynamic: license-file
47
+ Dynamic: requires-python
44
48
 
45
49
  <p align="center">
46
50
  <a href="https://github.com/AmberLee2427/microlens-submit">
@@ -52,11 +56,7 @@ Requires-Dist: importlib-resources ; extra == 'dev'
52
56
 
53
57
  *A stateful submission toolkit for the RGES-PIT Microlensing Data Challenge.*
54
58
 
55
- [![PyPI - v0.16.0](https://img.shields.io/pypi/v/microlens-submit.svg)](https://pypi.org/project/microlens-submit/)
56
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/microlens-submit.svg)](https://pypi.org/project/microlens-submit/)
57
- [![PyPI - License](https://img.shields.io/pypi/l/microlens-submit.svg)](https://pypi.org/project/microlens-submit/)
58
- [![CI](https://github.com/AmberLee2427/microlens-submit/actions/workflows/ci.yml/badge.svg)](https://github.com/AmberLee2427/microlens-submit/actions/workflows/ci.yml)
59
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
59
+ [![PyPI - v0.16.0](https://img.shields.io/pypi/v/microlens-submit.svg)](https://pypi.org/project/microlens-submit/)[![Read the Docs](https://readthedocs.org/projects/microlens-submit/badge/?version=latest)](https://microlens-submit.readthedocs.io/en/latest/?badge=latest)[![CI](https://github.com/AmberLee2427/microlens-submit/actions/workflows/ci.yml/badge.svg)](https://github.com/AmberLee2427/microlens-submit/actions/workflows/ci.yml)[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/microlens-submit.svg)](https://pypi.org/project/microlens-submit/)[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
60
60
 
61
61
  <br>
62
62
 
@@ -93,8 +93,21 @@ The CLI is the recommended way to interact with your submission project.
93
93
 
94
94
  You can pass ``--no-color`` to any command if your terminal does not support ANSI colors.
95
95
 
96
- 1. Initialize your project: `microlens-submit init --team-name "Planet Pounders" --tier "advanced"`
96
+ 1. Initialize your project:
97
+
98
+ ```bash
99
+ microlens-submit init --team-name "Planet Pounders" --tier "advanced"
100
+ # if a project directory was provided to `init`, you should now `cd` into that project
101
+ ```
102
+
103
+ To pass validation, you need to have provided a `repo_url` and `hardware_info` to the project and have a git project initialized in your sumission-project directory.
104
+
105
+ ```bash
106
+ microlens-submit set-repo-url <url> ./
107
+ microlens-submit set-hardware-info --cpu-details "intel i7 xxx" --ram-gb 32 ./
108
+ ```
97
109
  2. Add a new solution to an event:
110
+
98
111
  ```bash
99
112
  microlens-submit add-solution ogle-2025-blg-0042 1S2L \
100
113
  --param t0=555.5 \
@@ -102,18 +115,28 @@ You can pass ``--no-color`` to any command if your terminal does not support ANS
102
115
  --param tE=25.0 \
103
116
  --notes "This is a great fit!"
104
117
  ```
118
+
105
119
  Model types must be one of `1S1L`, `1S2L`, `2S1L`, `2S2L`, `1S3L`, `2S3L`, or `other`.
106
120
  This will create a new solution and print its unique `solution_id`.
121
+
107
122
  You can run the same command with `--dry-run` first to verify the
108
123
  parsed input without saving anything.
124
+
109
125
  3. **Bulk import multiple solutions from a CSV file:**
126
+
110
127
  ```bash
111
128
  microlens-submit import-solutions tests/data/test_import.csv --dry-run
112
129
  ```
113
- See the file `tests/data/test_import.csv` for a comprehensive example covering all features and edge cases. You can use this file as a template for your own imports.
130
+
131
+ See the file `tests/data/test_import.csv` for a comprehensive example covering all features and edge cases.
132
+ You can use this file as a template for your own imports.
133
+
114
134
  4. Deactivate a solution that didn't work out: `microlens-submit deactivate <solution_id>`
135
+
115
136
  5. List all solutions for an event: `microlens-submit list-solutions ogle-2025-blg-0042`
137
+
116
138
  6. Validate solutions and check for issues: `microlens-submit validate-solution <solution_id>`
139
+
117
140
  7. Export your final submission: `microlens-submit export final_submission.zip`
118
141
 
119
142
  **Note:** When you add a solution, it's automatically validated and any warnings are displayed. Use `--dry-run` to check validation without saving.
@@ -1,4 +1,4 @@
1
- microlens_submit/__init__.py,sha256=E4AZWfHXFQQyKY3uush-Kq2RZn4jRCCu4G0eozzcUYw,399
1
+ microlens_submit/__init__.py,sha256=cU8vO5jdCuI4cWhdTh0M3fV0L0qYtme1WDjtKq6osuw,399
2
2
  microlens_submit/error_messages.py,sha256=BuTkzc1B2lve-G4-4wAUX5p3y6CthPFOcMJM6_eMN2I,10262
3
3
  microlens_submit/tier_validation.py,sha256=mbE9MjXRHbsPBB12aD2lyYUdvXiBacweRG2OTWgP7Fs,6168
4
4
  microlens_submit/utils.py,sha256=3kEinJXr5OWHjrQUGHhUFA6L2rNdqaLy2ogmQNx_TfY,14358
@@ -15,18 +15,18 @@ microlens_submit/cli/commands/init.py,sha256=LOnG63YJupk3ELFCRl9itDymtAe0eu9xf2B
15
15
  microlens_submit/cli/commands/solutions.py,sha256=E0aU4rtjRWToh8l1yrSJnPo6CRnLsx-2QAF5Rv1yMVs,30051
16
16
  microlens_submit/cli/commands/validation.py,sha256=XNbuIy837IPV45ze4dvJaKx9-UCx24VXiGW_y4dl4YE,8841
17
17
  microlens_submit/dossier/__init__.py,sha256=INAacbrY0Wi5ueH8c7b156bGzelyUFcynbE7_YRiku0,1948
18
- microlens_submit/dossier/dashboard.py,sha256=5obGIFThpUT-qWsJJG9481YdZ3mjN94QXDrCLoccGQE,19674
19
- microlens_submit/dossier/event_page.py,sha256=XUcMOu4Jbz9Wno5o-4k0i2Y7yn7Qv1hYN2t7DlQlQ4U,14391
18
+ microlens_submit/dossier/dashboard.py,sha256=4OvTUCxIC4LbAqKwimIFhi65fNo5MMJswiQ5OWtyWFA,19907
19
+ microlens_submit/dossier/event_page.py,sha256=F9waw-Ce2_4ikdCPo-hNURUSYEPGMCfvsY3PbCXpsFg,14425
20
20
  microlens_submit/dossier/full_report.py,sha256=zQXoo6ZQfwv_NNFFel3ZYW1DgnqD--VU0L7J7p9yEng,12864
21
- microlens_submit/dossier/solution_page.py,sha256=WZcC218G-kJujNIYHloSy-sEfNFYh92g7g9mwveEepo,23559
21
+ microlens_submit/dossier/solution_page.py,sha256=qp2JaDamHD__3bwOzZ3CRj2UUSCiOf94wNyOfkQUGGU,23593
22
22
  microlens_submit/dossier/utils.py,sha256=LopBbVg6nzQasL1lnaI63y3bpmqYqBeDEwfB_NqEeCA,3845
23
23
  microlens_submit/models/__init__.py,sha256=1sHFjAWyFtGgQBRSo8lBYiPzToo4tIoHP3uBjtgJSPY,861
24
24
  microlens_submit/models/event.py,sha256=j5ulKGF2lVWXpIVcilCPftoXxMHwuYgD9ZjUz5vhlek,16941
25
25
  microlens_submit/models/solution.py,sha256=0prKFYM3oxKXZjtzhaAaS7E5cYP2maxfbYNQhkL-IY0,23339
26
26
  microlens_submit/models/submission.py,sha256=WgSgw6-60ZwLgsFjl2u1FX76ydATJ5t_DpGUQOekpg4,26116
27
- microlens_submit-0.16.0.dist-info/LICENSE,sha256=cy1qkVR-kGxD6FXVsparmU2vHJXYeoyAAHv6SgT67sw,1069
28
- microlens_submit-0.16.0.dist-info/METADATA,sha256=Npg_If55ev_mgu8MlHiv2nlPvgbVvTqdmZrgjlSg8IE,8956
29
- microlens_submit-0.16.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
30
- microlens_submit-0.16.0.dist-info/entry_points.txt,sha256=kA85yhxYrpQnUvVZCRS2giz52gaf1ZOfZFjY4RHIZ2s,62
31
- microlens_submit-0.16.0.dist-info/top_level.txt,sha256=uJ9_bADYRySlhEpP-8vTm90ZLV2SrKEzutAaRx8WF0k,17
32
- microlens_submit-0.16.0.dist-info/RECORD,,
27
+ microlens_submit-0.16.1.dist-info/licenses/LICENSE,sha256=cy1qkVR-kGxD6FXVsparmU2vHJXYeoyAAHv6SgT67sw,1069
28
+ microlens_submit-0.16.1.dist-info/METADATA,sha256=66B9Hiu35zyo6RjmNh8fe8RnZbnPrBk14PigILkKa1M,9487
29
+ microlens_submit-0.16.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
+ microlens_submit-0.16.1.dist-info/entry_points.txt,sha256=kA85yhxYrpQnUvVZCRS2giz52gaf1ZOfZFjY4RHIZ2s,62
31
+ microlens_submit-0.16.1.dist-info/top_level.txt,sha256=uJ9_bADYRySlhEpP-8vTm90ZLV2SrKEzutAaRx8WF0k,17
32
+ microlens_submit-0.16.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.2)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5