reflection-method 0.3.0__tar.gz → 0.3.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 (20) hide show
  1. {reflection_method-0.3.0/src/reflection_method.egg-info → reflection_method-0.3.1}/PKG-INFO +5 -5
  2. {reflection_method-0.3.0 → reflection_method-0.3.1}/README.md +4 -4
  3. {reflection_method-0.3.0 → reflection_method-0.3.1}/pyproject.toml +1 -1
  4. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method/__init__.py +1 -1
  5. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method/plot.py +7 -7
  6. {reflection_method-0.3.0 → reflection_method-0.3.1/src/reflection_method.egg-info}/PKG-INFO +5 -5
  7. {reflection_method-0.3.0 → reflection_method-0.3.1}/LICENSE +0 -0
  8. {reflection_method-0.3.0 → reflection_method-0.3.1}/setup.cfg +0 -0
  9. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method/cli.py +0 -0
  10. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method/core.py +0 -0
  11. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method/io.py +0 -0
  12. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method/result.py +0 -0
  13. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method.egg-info/SOURCES.txt +0 -0
  14. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method.egg-info/dependency_links.txt +0 -0
  15. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method.egg-info/entry_points.txt +0 -0
  16. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method.egg-info/requires.txt +0 -0
  17. {reflection_method-0.3.0 → reflection_method-0.3.1}/src/reflection_method.egg-info/top_level.txt +0 -0
  18. {reflection_method-0.3.0 → reflection_method-0.3.1}/tests/test_cli.py +0 -0
  19. {reflection_method-0.3.0 → reflection_method-0.3.1}/tests/test_core.py +0 -0
  20. {reflection_method-0.3.0 → reflection_method-0.3.1}/tests/test_docs_examples.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reflection-method
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Eclipsing binary minimum finder using the reflection method
5
5
  Author: Jochym
6
6
  License: GPL-3.0-or-later
@@ -176,7 +176,7 @@ The synthetic data mimics real AAVSO observations:
176
176
  - Asymmetric eclipse from limb darkening
177
177
  - Magnitude scale (eclipse = maximum)
178
178
 
179
- ![Quickstart pipeline: light curve, σ₂ scan and bootstrap distribution](examples/plots/quickstart_pipeline.png)
179
+ ![Quickstart pipeline: light curve, σ₂ scan and bootstrap distribution](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/quickstart_pipeline.png)
180
180
 
181
181
  Regenerate the committed image with:
182
182
 
@@ -189,16 +189,16 @@ REFLECTION_WRITE_DOCS=1 python -m pytest tests/test_docs_examples.py
189
189
  Eclipse minimum of **V500 Peg** (2026-08-08, 120 points) — `x0 = 94.86 ± 0.17 min`
190
190
  from start, i.e. `2026-08-08T22:14:03Z`:
191
191
 
192
- ![V500 Peg reflection-method diagnostics](examples/plots/V500_result.png)
192
+ ![V500 Peg reflection-method diagnostics](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/V500_result.png)
193
193
 
194
194
  Eclipse minimum of **V456 Cyg** (2026-07-29, 142 points) — `x0 = 54.69 ± 0.14 min`
195
195
  from start, i.e. `2026-07-29T21:57:23Z`:
196
196
 
197
- ![V456 Cyg reflection-method diagnostics](examples/plots/V456_result.png)
197
+ ![V456 Cyg reflection-method diagnostics](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/V456_result.png)
198
198
 
199
199
  Both stars' eclipses aligned to their detected minima:
200
200
 
201
- ![Comparison of V500 Peg and V456 Cyg minima](examples/plots/comparison.png)
201
+ ![Comparison of V500 Peg and V456 Cyg minima](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/comparison.png)
202
202
 
203
203
  ### CLI
204
204
 
@@ -153,7 +153,7 @@ The synthetic data mimics real AAVSO observations:
153
153
  - Asymmetric eclipse from limb darkening
154
154
  - Magnitude scale (eclipse = maximum)
155
155
 
156
- ![Quickstart pipeline: light curve, σ₂ scan and bootstrap distribution](examples/plots/quickstart_pipeline.png)
156
+ ![Quickstart pipeline: light curve, σ₂ scan and bootstrap distribution](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/quickstart_pipeline.png)
157
157
 
158
158
  Regenerate the committed image with:
159
159
 
@@ -166,16 +166,16 @@ REFLECTION_WRITE_DOCS=1 python -m pytest tests/test_docs_examples.py
166
166
  Eclipse minimum of **V500 Peg** (2026-08-08, 120 points) — `x0 = 94.86 ± 0.17 min`
167
167
  from start, i.e. `2026-08-08T22:14:03Z`:
168
168
 
169
- ![V500 Peg reflection-method diagnostics](examples/plots/V500_result.png)
169
+ ![V500 Peg reflection-method diagnostics](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/V500_result.png)
170
170
 
171
171
  Eclipse minimum of **V456 Cyg** (2026-07-29, 142 points) — `x0 = 54.69 ± 0.14 min`
172
172
  from start, i.e. `2026-07-29T21:57:23Z`:
173
173
 
174
- ![V456 Cyg reflection-method diagnostics](examples/plots/V456_result.png)
174
+ ![V456 Cyg reflection-method diagnostics](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/V456_result.png)
175
175
 
176
176
  Both stars' eclipses aligned to their detected minima:
177
177
 
178
- ![Comparison of V500 Peg and V456 Cyg minima](examples/plots/comparison.png)
178
+ ![Comparison of V500 Peg and V456 Cyg minima](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/comparison.png)
179
179
 
180
180
  ### CLI
181
181
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "reflection-method"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "Eclipsing binary minimum finder using the reflection method"
9
9
  readme = "README.md"
10
10
  license = {text = "GPL-3.0-or-later"}
@@ -25,7 +25,7 @@ try:
25
25
  except ImportError:
26
26
  plot_original_spline = plot_scan = plot_all = None
27
27
 
28
- __version__ = "0.3.0"
28
+ __version__ = "0.3.1"
29
29
 
30
30
  __all__ = [
31
31
  "MinimumResult",
@@ -115,7 +115,7 @@ def plot_original_spline(
115
115
  x0_label = f"x₀ = {x0_opt:.2f} ± {x0_std:.2f}"
116
116
  if x_unit:
117
117
  x0_label += f" {x_unit}"
118
- ax.axvline(x0_opt_plot, color="red", linewidth=1.5, label=x0_label)
118
+ ax_main.axvline(x0_opt_plot, color="red", linewidth=1.5, label="x₀")
119
119
 
120
120
  if utc0 is not None:
121
121
  ax.set_xlabel(f"{xlabel} [UTC]")
@@ -124,7 +124,7 @@ def plot_original_spline(
124
124
  else:
125
125
  ax.set_xlabel(f"{xlabel} [{x_unit}]" if x_unit else xlabel)
126
126
  ax.set_ylabel(ylabel)
127
- ax.set_title("Light curve and original spline with x₀")
127
+ ax.set_title(f"Light curve and original spline with x₀: {x0_label} (minimum)")
128
128
  ax.legend(loc="lower left", framealpha=0.7)
129
129
  ax.grid(True, alpha=0.3)
130
130
 
@@ -336,7 +336,7 @@ def plot_all(
336
336
  ... fit_window_lo=fit_lo, fit_window_hi=fit_hi)
337
337
  >>> fig.savefig("output.png", dpi=150, bbox_inches="tight")
338
338
  """
339
- fig = plt.figure(figsize=(10, 8))
339
+ fig = plt.figure(figsize=(10, 4.8))
340
340
  gs = fig.add_gridspec(2, 2, width_ratios=[0.62, 0.38], height_ratios=[0.5, 0.5])
341
341
  ax_main = fig.add_subplot(gs[:, 0])
342
342
  ax_sigma = fig.add_subplot(gs[0, 1])
@@ -366,7 +366,7 @@ def plot_all(
366
366
  ax_main.scatter(x_plot, y, s=8, alpha=0.6, label="original data", color="C0", edgecolors="none")
367
367
  ax_main.scatter(xr_plot, y, s=8, alpha=0.5, label="reflected points", color="orange", edgecolors="none")
368
368
  ax_main.plot(xs_plot, spl1(xs), label="original spline", color="royalblue", linewidth=1.5)
369
- ax_main.plot(xs2_plot, spl2(xs2), label="refitted spline (data + reflection)", color="darkgreen", linestyle="--", linewidth=1.5)
369
+ ax_main.plot(xs2_plot, spl2(xs2), label="refitted spline", color="darkgreen", linestyle="--", linewidth=1.5)
370
370
 
371
371
  y_min, y_max = float(y.min()), float(y.max())
372
372
  if utc0 is not None:
@@ -375,7 +375,7 @@ def plot_all(
375
375
  x0_label = f"x₀ = {x0_opt:.2f} ± {x0_std:.2f}"
376
376
  if x_unit:
377
377
  x0_label += f" {x_unit}"
378
- ax_main.axvline(x0_opt_plot, color="red", linewidth=1.5, label=x0_label)
378
+ ax_main.axvline(x0_opt_plot, color="red", linewidth=1.5, label="x₀")
379
379
 
380
380
  if utc0 is not None:
381
381
  ax_main.set_xlabel(f"{xlabel} [UTC]")
@@ -384,8 +384,8 @@ def plot_all(
384
384
  else:
385
385
  ax_main.set_xlabel(f"{xlabel} [{x_unit}]" if x_unit else xlabel)
386
386
  ax_main.set_ylabel(ylabel)
387
- ax_main.set_title(f"Reflected light curve; {x0_label}")
388
- ax_main.legend(loc="upper right", fontsize=8, framealpha=0.7)
387
+ ax_main.set_title(f"Reflected light curve; {x0_label} (minimum)")
388
+ ax_main.legend(loc="lower left", fontsize=8, framealpha=0.7)
389
389
  ax_main.grid(True, alpha=0.3)
390
390
 
391
391
  if invert_y:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reflection-method
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Eclipsing binary minimum finder using the reflection method
5
5
  Author: Jochym
6
6
  License: GPL-3.0-or-later
@@ -176,7 +176,7 @@ The synthetic data mimics real AAVSO observations:
176
176
  - Asymmetric eclipse from limb darkening
177
177
  - Magnitude scale (eclipse = maximum)
178
178
 
179
- ![Quickstart pipeline: light curve, σ₂ scan and bootstrap distribution](examples/plots/quickstart_pipeline.png)
179
+ ![Quickstart pipeline: light curve, σ₂ scan and bootstrap distribution](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/quickstart_pipeline.png)
180
180
 
181
181
  Regenerate the committed image with:
182
182
 
@@ -189,16 +189,16 @@ REFLECTION_WRITE_DOCS=1 python -m pytest tests/test_docs_examples.py
189
189
  Eclipse minimum of **V500 Peg** (2026-08-08, 120 points) — `x0 = 94.86 ± 0.17 min`
190
190
  from start, i.e. `2026-08-08T22:14:03Z`:
191
191
 
192
- ![V500 Peg reflection-method diagnostics](examples/plots/V500_result.png)
192
+ ![V500 Peg reflection-method diagnostics](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/V500_result.png)
193
193
 
194
194
  Eclipse minimum of **V456 Cyg** (2026-07-29, 142 points) — `x0 = 54.69 ± 0.14 min`
195
195
  from start, i.e. `2026-07-29T21:57:23Z`:
196
196
 
197
- ![V456 Cyg reflection-method diagnostics](examples/plots/V456_result.png)
197
+ ![V456 Cyg reflection-method diagnostics](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/V456_result.png)
198
198
 
199
199
  Both stars' eclipses aligned to their detected minima:
200
200
 
201
- ![Comparison of V500 Peg and V456 Cyg minima](examples/plots/comparison.png)
201
+ ![Comparison of V500 Peg and V456 Cyg minima](https://raw.githubusercontent.com/jochym/reflection-method/main/examples/plots/comparison.png)
202
202
 
203
203
  ### CLI
204
204