Did I find the right examples for you? yes no

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)
Reads through a single spec (ie, record inclusion spec, column
exclusion spec, etc) and remaps any negative values to their positive
equiv.
Inputs:
    - the max number of items to apply the spec to.  The location
      starts at an offset of 0.  So, a 4-item list will have a
      max-loc of 3.
Outputs:
    - none

src/d/a/datagristle-0.56/gristle/tests/test_location_slicer.py   datagristle(Download)
    def test_adjust_one_spec(self):
 
        self.sp = mod.SpecProcessor(['5'], 'rec_inc_spec')
        self.sp.spec_adjuster(loc_max=80)
        assert self.sp.adj_spec == self.sp.orig_spec
        self.sp.spec_adjuster()
        assert self.sp.adj_spec == self.sp.orig_spec
 
        self.sp = mod.SpecProcessor(['5:15'], 'rec_inc_spec')
        self.sp.spec_adjuster(loc_max=80)
 
        self.sp = mod.SpecProcessor(['5:9','10:'], 'rec_inc_spec')
        self.sp.spec_adjuster(loc_max=80)
        assert self.sp.adj_spec == self.sp.orig_spec
 
        self.sp = mod.SpecProcessor([':'], 'rec_inc_spec')
        self.sp.spec_adjuster(loc_max=80)

src/d/a/DataGristle-HEAD/gristle/tests/test_location_slicer.py   DataGristle(Download)
    def test_adjust_one_spec(self):
 
        self.sp = mod.SpecProcessor(['5'], 'rec_inc_spec')
        self.sp.spec_adjuster(loc_max=80)
        assert self.sp.adj_spec == self.sp.orig_spec
        self.sp.spec_adjuster()
        assert self.sp.adj_spec == self.sp.orig_spec
 
        self.sp = mod.SpecProcessor(['5:15'], 'rec_inc_spec')
        self.sp.spec_adjuster(loc_max=80)
 
        self.sp = mod.SpecProcessor(['5:9','10:'], 'rec_inc_spec')
        self.sp.spec_adjuster(loc_max=80)
        assert self.sp.adj_spec == self.sp.orig_spec
 
        self.sp = mod.SpecProcessor([':'], 'rec_inc_spec')
        self.sp.spec_adjuster(loc_max=80)