type safe for getShape1D and getShape2D #94
Conversation
…improvement in Gaussian and Lorentzian functions
…ion-in-simple-powers
… safety and clarity
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #94 +/- ##
==========================================
+ Coverage 93.18% 96.36% +3.18%
==========================================
Files 23 23
Lines 968 963 -5
Branches 206 213 +7
==========================================
+ Hits 902 928 +26
+ Misses 65 34 -31
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Do you have a benchmark to prove this? |
right, I just read it, but I run a mitata benchmark and the difference is almost noise. let me revert this change |
|
@targos is it correct the refactoring of getShape1D? the idea is that typescript know that the returned shape instance has the corresponding instance type instead of an union type. to improve the type safe in the dependents packages like spectra-fitting |
|
It's OK, but I pushed a simplification to avoid all the workarounds |
No description provided.