Skip to content

Commit f5652f8

Browse files
committed
Release version 0.17.7
1 parent 14e0e7f commit f5652f8

File tree

15 files changed

+74
-35
lines changed

15 files changed

+74
-35
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.17.7] - 2026-02-10
9+
10+
### Fixed
11+
- Improved validation error messages when physical parameters (e.g. `Mtot`) are incorrectly placed in `parameter_uncertainties` instead of `physical_parameter_uncertainties`.
12+
- Corrected misleading example in documentation (`docs/usage_examples.rst`) that showed physical parameter uncertainties being added to the model parameter uncertainties dictionary.
13+
14+
815
## [0.17.6] - 2026-02-10
916

1017
### Fixed

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cff-version: 1.2.0
22
message: "If you use microlens-submit, please cite it as below."
33
title: "microlens-submit"
4-
version: "0.17.6"
4+
version: "0.17.7"
55
authors:
66
- family-names: Malpas
77
given-names: Amber
88
url: "https://github.com/AmberLee2427/microlens-submit"
9-
doi: "10.5281/zenodo.18601472"
9+
doi: "10.5281/zenodo.18601926"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,15 @@ import this file directly.
160160

161161
Bibtex:
162162
```
163-
@software{malpas_2025_18601472,
163+
@software{malpas_2025_18601926,
164164
author = {Malpas, Amber},
165165
title = {microlens-submit},
166166
month = oct,
167167
year = 2025,
168168
publisher = {Zenodo},
169169
version = {v0.16.3},
170-
doi = {10.5281/zenodo.18601472},
171-
url = {https://doi.org/10.5281/zenodo.18601472},
170+
doi = {10.5281/zenodo.18601926},
171+
url = {https://doi.org/10.5281/zenodo.18601926},
172172
}
173173
```
174174

RELEASE_NOTES.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# microlens-submit v0.17.6 Release Notes
1+
# microlens-submit v0.17.7 Release Notes
22

33
**Release Date:** 2026-02-10
44

55
## Changelog
66

7-
## [0.17.6] - 2026-02-10
7+
## [0.17.7] - 2026-02-10
88

99
### Fixed
10-
- Fixed `OSError` (cross-device link) when saving solution notes on systems with separate filesystems (like Nexus), by using `shutil.move` instead of `os.replace`.
10+
- Improved validation error messages when physical parameters (e.g. `Mtot`) are incorrectly placed in `parameter_uncertainties` instead of `physical_parameter_uncertainties`.
11+
- Corrected misleading example in documentation (`docs/usage_examples.rst`) that showed physical parameter uncertainties being added to the model parameter uncertainties dictionary.

conda/recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% set name = "microlens-submit" %}
22
{% set filename_name = name | replace("-", "_") %}
3-
{% set version = "0.17.6" %}
3+
{% set version = "0.17.7" %}
44
{% set python_min = "3.10" %}
55

66
# NOTE: This recipe is the source of truth for conda-forge. Edit it here in

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
author = "RGES-PIT"
99

1010
# The full version, including alpha/beta/rc tags
11-
release = "0.17.6"
11+
release = "0.17.7"
1212

1313
extensions = [
1414
"sphinx.ext.autodoc",

docs/usage_examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Extended Example
166166
... "thetaE": 0.5, # mas
167167
... "piE": 0.15 # magnitude
168168
... }
169-
>>> solution2.parameter_uncertainties.update({
169+
>>> solution2.physical_parameter_uncertainties.update({
170170
... "Mtot": [0.45, 0.55],
171171
... "D_L": 0.5
172172
... })

microlens_submit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
the command line interface.
66
"""
77

8-
__version__ = "0.17.6"
8+
__version__ = "0.17.7"
99

1010
from .models import Event, Solution, Submission
1111
from .utils import load

microlens_submit/models/solution.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,9 @@ def run_validation(self) -> List[str]:
450450

451451
# Check parameter uncertainties
452452
uncertainty_messages = validate_parameter_uncertainties(
453-
parameters=self.parameters, uncertainties=self.parameter_uncertainties
453+
parameters=self.parameters,
454+
uncertainties=self.parameter_uncertainties,
455+
physical_parameters=self.physical_parameters,
454456
)
455457
messages.extend(uncertainty_messages)
456458

microlens_submit/validate_parameters.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,9 @@ def validate_parameter_types(
790790

791791

792792
def validate_parameter_uncertainties(
793-
parameters: Dict[str, Any], uncertainties: Optional[Dict[str, Any]] = None
793+
parameters: Dict[str, Any],
794+
uncertainties: Optional[Dict[str, Any]] = None,
795+
physical_parameters: Optional[Dict[str, Any]] = None,
794796
) -> List[str]:
795797
"""Validate parameter uncertainties for reasonableness and consistency.
796798
@@ -857,7 +859,14 @@ def validate_parameter_uncertainties(
857859

858860
for param_name, uncertainty in uncertainties.items():
859861
if param_name not in parameters:
860-
messages.append(f"Uncertainty provided for unknown parameter '{param_name}'")
862+
# Check if it's a physical parameter
863+
if physical_parameters and param_name in physical_parameters:
864+
messages.append(
865+
f"Physical parameter '{param_name}' found in parameter_uncertainties. "
866+
"Move it to physical_parameter_uncertainties."
867+
)
868+
else:
869+
messages.append(f"Uncertainty provided for unknown parameter '{param_name}'")
861870
continue
862871

863872
param_value = parameters[param_name]

0 commit comments

Comments
 (0)