/dports/audio/libsndfile/libsndfile-1.0.31/src/ |
H A D | alac.c | 182 if (plac->partial_block_frames && plac->partial_block_frames < plac->frames_per_block) in alac_close() 473 readcount = (plac->frames_this_block - plac->partial_block_frames) * plac->channels ; in alac_read_s() 476 iptr = plac->buffer + plac->partial_block_frames * plac->channels ; in alac_read_s() 503 readcount = (plac->frames_this_block - plac->partial_block_frames) * plac->channels ; in alac_read_i() 506 iptr = plac->buffer + plac->partial_block_frames * plac->channels ; in alac_read_i() 539 iptr = plac->buffer + plac->partial_block_frames * plac->channels ; in alac_read_f() 572 iptr = plac->buffer + plac->partial_block_frames * plac->channels ; in alac_read_d() 653 iptr = plac->buffer + plac->partial_block_frames * plac->channels ; in alac_write_s() 684 iptr = plac->buffer + plac->partial_block_frames * plac->channels ; in alac_write_i() 718 iptr = plac->buffer + plac->partial_block_frames * plac->channels ; in alac_write_f() [all …]
|
/dports/biology/py-pywgsim/pywgsim-0.5.2/pywgsim/ |
H A D | main.py | 1 import plac 13 @plac.pos('genome', "FASTA reference sequence") 14 @plac.pos('read1', "FASTQ file for first in pair (read1.fq)") 15 @plac.pos('read2', "FASTQ file for second in pair (read2.fq)") 16 @plac.opt('err', "the base error rate", abbrev='e', type=float) 17 @plac.opt('mut', "rate of mutations", abbrev='r', type=float) 18 @plac.opt('frac', "fraction of indels", abbrev='R', type=float) 21 @plac.opt('stdev', "standard deviation", abbrev='s', type=int) 24 @plac.opt('num', "number of read pairs", abbrev='N', type=int) 28 @plac.flg('version', "print version number", abbrev='v') [all …]
|
/dports/devel/py-plac/plac-1.3.4/ |
H A D | README.md | 28 import plac 29 plac.call(main) 61 import plac 68 @plac.flg('debug', "Enable debug mode") 74 plac.call(main) 124 import plac 135 plac.call(main) 156 import plac 158 @plac.pos('args', help="words") 165 plac.call(main) [all …]
|
H A D | PKG-INFO | 2 Name: plac 50 import plac 51 plac.call(main) 83 import plac 96 plac.call(main) 146 import plac 157 plac.call(main) 178 import plac 180 @plac.pos('args', help="words") 187 plac.call(main) [all …]
|
H A D | plac_runner.py | 6 import plac 18 tool = plac.import_main(*init_args) 19 command = getattr(plac.Interpreter(tool), cmd) # doctest or execute 25 @plac.annotations( 38 baseparser = plac.parser_from(main) 42 plactool = plac.import_main(fname) 44 out = plac.call(plactool, sys.argv[2:], eager=False) 45 if plac.iterable(out): 51 plactool = plac.import_main(fname, *extra) 53 i = plac.Interpreter(plactool) [all …]
|
H A D | CHANGES.md | 10 documentation has been moved to https://plac.readthedocs.io, 16 Added new decorators `plac.pos`, `plac.opt`, `plac.flg` and an example 30 format. Fixed a bug when running plac scripts from Jupyter notebooks, 33 added a LICENSE.txt file and a Quickstart section to the README. plac 50 can go in the help message. Added support for `--version` in plac.call. 89 to Argh; now plac has its own space on Google Code 93 Removed a stray newline in the output of plac, as signaled 136 added an asynchronous server; added plac.Interpreter.call 153 and the command container concept. Made the split plac/plac_core/plac_ext 154 and added a plac runner, able to run scripts, batch files and doctests. [all …]
|
/dports/devel/py-plac/plac-1.3.4/plac.egg-info/ |
H A D | PKG-INFO | 2 Name: plac 50 import plac 51 plac.call(main) 83 import plac 96 plac.call(main) 146 import plac 157 plac.call(main) 178 import plac 180 @plac.pos('args', help="words") 187 plac.call(main) [all …]
|
/dports/devel/py-plac/plac-1.3.4/doc/ |
H A D | test_plac.py | 11 import plac 39 return plac.parser_from(f) 64 main = plac.import_main(name + '.py') 242 assert plac.call(main, ['a=1']) == [('a', '1')] 243 expect(SystemExit, plac.call, main, ['foo']) 294 assert 'commit' == plac.call(cmds, ['commit']) 296 expect(SystemExit, plac.call, cmds, []) 300 assert 'commit' == plac.call(cmds, ['comm']) 302 expect(SystemExit, plac.call, cmds, ['foo']) 308 expect(SystemExit, plac.call, c, ['commit', '-h']) [all …]
|
H A D | test_ishelve.py | 2 import plac 7 assert plac.call(ishelve.main, ['.clear']) == ['cleared the shelve'] 8 assert plac.call(ishelve.main, ['a=1']) == ['setting a=1'] 9 assert plac.call(ishelve.main, ['a']) == ['1'] 10 assert plac.call(ishelve.main, ['.delete=a']) == ['deleted a'] 11 assert plac.call(ishelve.main, ['a']) == ['a: not found']
|
H A D | example_all.py | 1 import plac 8 @plac.pos('model', "Model name", choices=['A', 'B', 'C']) 9 @plac.opt('output_dir', "Optional output directory", type=Path) 10 @plac.opt('n_iter', "Number of training iterations", type=int) 11 @plac.flg('debug', "Enable debug mode") 17 plac.call(main)
|
H A D | vcs.py | 3 import plac # this implementation also works with Python 2.4 8 @plac.annotations(url='url of the source code') 14 @plac.annotations(message=('commit message', 'option')) 20 @plac.annotations(quiet=('summary information', 'flag', 'q')) 38 import plac 39 for out in plac.call(main, version='0.1.0'):
|
H A D | example13.py | 2 import plac 5 @plac.flg('list_') # avoid clash with builtin 6 @plac.flg('yield_') # avoid clash with keyword 7 @plac.opt('sys_') # avoid clash with a very common name 15 plac.call(main)
|
H A D | example15.py | 3 import plac 5 @plac.pos('args', help="words") 6 @plac.opt('kwds', help="key=value", ) 12 plac.call(main)
|
H A D | tkmon.py | 2 import plac 9 raise plac.Interpreter.Exit 12 i = plac.Interpreter(Hello()) 13 i.add_monitor(plac.TkMonitor('tkmon'))
|
H A D | example11.py | 2 import plac 5 @plac.annotations( 13 import plac; plac.call(main)
|
H A D | test_runp.py | 6 import plac, time 17 assert ['3', '5', '10'] == plac.runp([gen(3), gen(5), gen(10)]) 20 result, error = plac.runp([gen(3), err()]) 25 plac.runp([gen(9), gen(9)])
|
H A D | picalculator.py | 7 import plac 13 @plac.annotations( 28 self.i = plac.Interpreter(self).__enter__() 35 @plac.annotations(npoints=('npoints', 'positional', None, int)) 61 pc = plac.call(PiCalculator)
|
H A D | ishelve2.py | 4 import plac 11 @plac.annotations( 52 plac.Interpreter(plac.call(ShelveInterface)).interact()
|
H A D | example14.py | 3 import plac 5 @plac.pos('words', help="Input words") 10 plac.call(main)
|
H A D | example16.py | 1 import plac 6 p = plac.parser_from(main) 9 plac.call(main)
|
H A D | server_ex.py | 1 import plac 6 plac.Interpreter(main).start_server(port) 9 plac.call(main)
|
H A D | example12.py | 2 import plac 5 @plac.annotations( 18 for output in plac.call(main):
|
H A D | example10.py | 2 import plac 6 @plac.annotations( 24 print(plac.call(main))
|
/dports/cad/sumo/sumo-1.2.0/tools/contributed/lisum-core/src/main/java/de/dlr/ts/commons/tools/ |
H A D | MathTools.java | 182 int plac = (int)Math.pow(10, places); in roundHalf() local 185 tmp /= plac; in roundHalf() 187 double tronco = (long)tmp * plac; in roundHalf() 190 if(resto >= (plac / 2) ) in roundHalf() 191 tronco += plac; in roundHalf() 206 int plac = (int)Math.pow(10, places); in roundHalf() local 209 tmp /= plac; in roundHalf() 211 double tronco = (int)tmp * plac; in roundHalf() 214 if(resto >= (plac / 2) ) in roundHalf() 215 tronco += plac; in roundHalf()
|
/dports/misc/lifelines/lifelines-3.1.1/src/gedlib/ |
H A D | node.c | 759 if (plac) { in event_to_date_place() 760 *plac = NULL; in event_to_date_place() 771 if (eqstr("PLAC", ntag(node)) && plac && !*plac) { in event_to_date_place() 772 *plac = nval(node); in event_to_date_place() 790 STRING date, plac; in event_to_string() local 797 plac = (*rfmt->rfmt_plac)(plac); in event_to_string() 798 if (rfmt && rfmt->combopic && date && date[0] && plac && plac[0]) { in event_to_string() 802 } else if (plac && plac[0]) { in event_to_string() 889 while (*plac++ == ' ') in shorten_plac() 891 plac--; in shorten_plac() [all …]
|