Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
sudo apt-get update
python -m pip install --upgrade pip
sudo apt install libbz2-dev
conda install -c conda-forge somoclu
pip install wheel
pip install .
pip install .[dev]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
sudo apt-get update
python -m pip install --upgrade pip
sudo apt install libbz2-dev
conda install -c conda-forge somoclu
pip install wheel
pip install .
pip install .[dev]
Expand Down
5 changes: 3 additions & 2 deletions src/rail/pipelines/estimation/tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(
classifiers: dict | None=None,
summarizers: dict | None=None,
n_tomo_bins: int=5,
nsamples: int=20
):
RailPipeline.__init__(self)

Expand Down Expand Up @@ -53,7 +54,7 @@ def __init__(
self.default_input_dict[f"input_{pz_algo_name_}"] = 'dummy.in'
self.add_stage(the_classifier)

for ibin in range(n_tomo_bins):
for ibin in range(1, n_tomo_bins+1):

true_nz = TrueNZHistogrammer.make_and_connect(
name=f"true_nz_{pz_algo_name_}_{classifier_name_}_bin{ibin}",
Expand All @@ -77,6 +78,6 @@ def __init__(
tomography_bins=the_classifier.io.output,
),
selected_bin=ibin,
nsamples=20,
nsamples=nsamples,
)
self.add_stage(the_summarizer)
Loading