2096 Commits

Author SHA1 Message Date
Hans Dembinski
66842660c0
fix some false positive warnings emitted by msvc (#399)
* fix some false positive warnings emitted by msvc
* make find_package for Python3 more specific
2024-04-25 12:51:47 +02:00
Ruggero Turra
90867e24a4
Add collector accumulator (#390)
Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2024-04-25 09:05:40 +02:00
Hans Dembinski
cd3e1110cb
Updates from #370 (#397)
This PR keeps the useful changes from PR #370, which was never finished.
2024-04-24 17:39:24 +02:00
Ed Catmur
b11364eb99
Split out dynamic-only tests (#388)
Compiling tests under Visual Studio 2019 14.29.30133 (19.29.30145.0) fails with a not very helpful error:
```
libs\histogram\test\algorithm_project_test.cpp(186,1): fatal error C1903: unable to recover from previous error(s); stopping compilation
```
This can be fixed by moving the dynamic-only tests into a separate function, so that they are only compiled and run once.

---------

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2024-04-24 16:08:42 +02:00
Matt Borland
04fb105bc6
Fix python3 variables (#398) 2024-04-24 11:52:19 +02:00
Matt Borland
cda7447c97
Replace deprecated find_package for python (#393)
* Replace deprecated find_package for python
* update cmake minimum version

---------

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2024-04-23 14:11:46 +02:00
Hans Dembinski
a29729e668 update changelog boost-1.84.0.beta1 boost-1.84.0 boost-1.83.0.beta1 boost-1.83.0 boost-1.85.0.beta1 boost-1.85.0 boost-1.86.0.beta1 boost-1.86.0 boost-1.87.0 boost-1.87.0.beta1 boost-1.88.0.beta1 boost-1.88.0 2023-03-31 09:53:33 +02:00
Hans Dembinski
70b98302a2
Replace detail::span and detail::make_span with implementations in boost::core (#384)
* fix cmake build of benchmarks

* wip

* u

* u

* rename span.hpp to make_span.hpp

* missing file

* also replace make_span
boost-1.82.0.beta1 boost-1.82.0
2023-02-19 17:42:01 +01:00
Hans Dembinski
48ff00b642
further doc improvements (#383) 2022-12-26 16:21:31 +01:00
Hans Dembinski
04946089f4
improve docstrings for axes, explain move issue (#382) 2022-12-26 14:41:18 +01:00
Hans Dembinski
652c7f8ebb
try to catch for illegal min,max macros (#381) 2022-12-26 12:14:05 +01:00
Han Jiang
78021d54d8
add parentheses around min and max (#377) 2022-12-24 14:26:14 +01:00
Hans Dembinski
a1aa92deab
Update CONTRIBUTING.md 2022-12-23 11:58:59 +01:00
Hans Dembinski
c5905d8827
Update CONTRIBUTING.md 2022-12-23 11:56:45 +01:00
Hans Dembinski
72064c642a
increase coverage and fix noexcept (#375) 2022-12-23 01:21:39 +01:00
Andrey Semashev
3804826411
Use std::is_same instead of boost::core::is_same. (#374)
boost::core::is_same is deprecated, so use std::is_same instead.
2022-12-23 00:59:15 +01:00
Hans Dembinski
d475bc9b85
Fixes for latest compilers (#373) 2022-12-23 00:58:31 +01:00
Hans Dembinski
82e75c14b3 update changelog boost-1.81.0 2022-10-18 10:43:18 +02:00
Hans Dembinski
25608fe86a
fix sub_array and span in C++20 (#368) boost-1.81.0.beta1 2022-10-03 13:57:08 +02:00
Hans Dembinski
1c9077a6e1
Enable pre-commit (#366) 2022-09-28 12:11:50 +02:00
Jay Gohil
10c19df918
Add fraction accumulator (for calculating efficiencies, etc) (#361)
* Added fraction accumulator
* Added binomial proportion interval computers: Wald, Wilson Score, Clopper Pearson, Jeffreys
* Width of intervals for all classes can be set via deviation or confidence_level
* Support valarray in histogram::fill
* Add fraction and count to user guide

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
Co-authored-by: Hans Dembinski <HDembinski@users.noreply.github.com>
2022-09-28 11:18:46 +02:00
Hans Dembinski
7cf67610f8
make iterator_adaptor easier to use (#364) 2022-09-17 18:35:33 +02:00
Hans Dembinski
4699dbc0e8
fix tests for msvc 2022 (#363) 2022-07-28 19:16:27 +02:00
Baoshuo Ren
0718ae6f10
chore: bump macos runner version (#362)
GitHub Action is sunsetting the macOS 10.15 Actions runner. It will stop working intermittently until being completely removed by 2022-8-30: https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2022-07-27 23:25:50 +02:00
Hans Dembinski
b62d38051e fix for cmake tests boost-1.80.0 2022-07-27 23:04:20 +02:00
Hans Dembinski
9805362012 update changelog 2022-07-25 13:21:58 +02:00
Hans Dembinski
8b1657553d
Enable ascii ostream tests on windows (#360) 2022-07-20 10:32:56 +02:00
Hans Dembinski
843cacffbf
fix indexed crash for histograms with axes of zero size (physical or logical) (#356) 2022-07-20 09:51:16 +02:00
Hans Dembinski
9caf633366
remove deprecated API, as previously announced (#359) 2022-07-19 23:08:38 +02:00
Hans Dembinski
6ccc6a80a4
disable altered serialiation (#358)
* do not test everything on VS 2022
2022-07-19 22:15:13 +02:00
Hans Dembinski
bebb509224
add ascii test and clarify why tests are skipped (#357) 2022-07-19 21:17:39 +02:00
Hans Dembinski
1a754bac77
Update cmake instructions and add doc of b2filt 2022-07-19 18:21:58 +02:00
Hans Dembinski
d736aab212
Division support for weighted_sum (#351) boost-1.79.0 boost-1.80.0.beta1 boost-1.79.0.beta1 2022-02-10 10:36:07 +01:00
Hans Dembinski
bf7712f0d7 regular and variable axis are closed intervals if overflow bin is absent (#344) 2021-11-15 09:29:14 +01:00
Hans Dembinski
b482598597 cpp17: set axis compile-time options via deduction guide (#340) 2021-11-15 09:29:12 +01:00
Hans Dembinski
8f3a3c07e4 clean up boost-1.78.0 2021-11-15 09:28:35 +01:00
Hans Dembinski
1f1eda5c97 added comment about proven usefulness of this optimization 2021-11-15 09:28:35 +01:00
Hans Dembinski
eef6e5bdbc use new count instead of deprecated thread_safe 2021-11-15 09:28:35 +01:00
Hans Dembinski
b7e69a0cf9 improved doxygen docs 2021-11-15 09:28:23 +01:00
Hans Dembinski
c234637336 fix ci build (#348) 2021-11-15 08:21:02 +01:00
Hans Dembinski
f6577ec473 deprecate accumulators::sum::small and ::large as workaround for bug in windows.h (#343) 2021-11-15 08:18:05 +01:00
Sam Darwin
dcd2315e6b Update metadata (#346) 2021-11-15 08:17:46 +01:00
Hans Dembinski
6cc4601b87
Fix bug in 1D histogram::fill when axis is growing and argument is single value (#334) boost-1.78.0.beta1 2021-09-26 18:31:35 +02:00
Henry Schreiner
b11de06c43
tests: explicit extensions required in modern CMake (#330) 2021-09-26 12:31:00 +02:00
Hans Dembinski
4a10c2c11b
Fix and test for missing count division (#329) 2021-08-19 14:22:41 +02:00
Hans Dembinski
90a58d03ee
fix scaling for count and update CI (#328) boost-1.77.0 boost-1.77.0.beta1 2021-06-27 16:58:14 +02:00
Hans Dembinski
6cde30a366
deprecate accumulators::thread_safe, replace with optionally thread-safe accumulators::count (#326) 2021-05-17 22:20:47 +02:00
Hans Dembinski
30e1a71571 whitespace 2021-05-16 11:51:38 +02:00
Hans Dembinski
79fab52b32
update to lcov-1.15 and update to less brittle python script (#325) 2021-05-07 17:32:04 +02:00
Hans Dembinski
96bfcd620c
activate more warnings (#322) 2021-04-25 14:27:42 +02:00