File tree Expand file tree Collapse file tree 2 files changed +1
-51
lines changed
Expand file tree Collapse file tree 2 files changed +1
-51
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use itertools::{izip, Itertools};
1010use serde:: { Deserialize , Serialize } ;
1111use std:: borrow:: Cow ;
1212use std:: cmp:: Ordering ;
13- use std:: ops:: { Bound , Range , RangeBounds } ;
13+ use std:: ops:: Range ;
1414use std:: str:: FromStr ;
1515use thiserror:: Error ;
1616
@@ -402,47 +402,6 @@ impl BinsWithFillLimits {
402402 self . bins . iter ( ) . map ( Bin :: normalization) . collect ( )
403403 }
404404
405- /// TODO
406- ///
407- /// # Errors
408- ///
409- /// TODO
410- pub fn subset ( & self , range : impl RangeBounds < usize > ) -> Result < Self , ( ) > {
411- let range_plus_one = (
412- range. start_bound ( ) . cloned ( ) ,
413- match range. end_bound ( ) . cloned ( ) {
414- Bound :: Excluded ( end) => Bound :: Included ( end) ,
415- Bound :: Included ( end) => Bound :: Included ( end + 1 ) ,
416- Bound :: Unbounded => Bound :: Unbounded ,
417- } ,
418- ) ;
419-
420- Self :: new (
421- self . bins
422- . iter ( )
423- . enumerate ( )
424- . filter_map ( |( index, bin) | {
425- if range. contains ( & index) {
426- Some ( bin. clone ( ) )
427- } else {
428- None
429- }
430- } )
431- . collect ( ) ,
432- self . fill_limits
433- . iter ( )
434- . enumerate ( )
435- . filter_map ( |( index, & limit) | {
436- if range_plus_one. contains ( & index) {
437- Some ( limit)
438- } else {
439- None
440- }
441- } )
442- . collect ( ) ,
443- )
444- }
445-
446405 /// TODO
447406 ///
448407 /// # Errors
Original file line number Diff line number Diff line change @@ -328,15 +328,6 @@ impl Conv {
328328 Self { conv_type, pid }
329329 }
330330
331- /// TODO
332- #[ must_use]
333- pub const fn with_pid ( & self , pid : i32 ) -> Self {
334- Self {
335- conv_type : self . conv_type ,
336- pid,
337- }
338- }
339-
340331 /// Return the convolution if the PID is charged conjugated.
341332 #[ must_use]
342333 pub const fn cc ( & self ) -> Self {
You can’t perform that action at this time.
0 commit comments