Home
last modified time | relevance | path

Searched refs:plac (Results 1 – 25 of 1379) sorted by relevance

12345678910>>...56

/dports/audio/libsndfile/libsndfile-1.0.31/src/
H A Dalac.c182 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 Dmain.py1 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 DREADME.md28 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 DPKG-INFO2 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 Dplac_runner.py6 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 DCHANGES.md10 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 DPKG-INFO2 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 Dtest_plac.py11 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 Dtest_ishelve.py2 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 Dexample_all.py1 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 Dvcs.py3 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 Dexample13.py2 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 Dexample15.py3 import plac
5 @plac.pos('args', help="words")
6 @plac.opt('kwds', help="key=value", )
12 plac.call(main)
H A Dtkmon.py2 import plac
9 raise plac.Interpreter.Exit
12 i = plac.Interpreter(Hello())
13 i.add_monitor(plac.TkMonitor('tkmon'))
H A Dexample11.py2 import plac
5 @plac.annotations(
13 import plac; plac.call(main)
H A Dtest_runp.py6 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 Dpicalculator.py7 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 Dishelve2.py4 import plac
11 @plac.annotations(
52 plac.Interpreter(plac.call(ShelveInterface)).interact()
H A Dexample14.py3 import plac
5 @plac.pos('words', help="Input words")
10 plac.call(main)
H A Dexample16.py1 import plac
6 p = plac.parser_from(main)
9 plac.call(main)
H A Dserver_ex.py1 import plac
6 plac.Interpreter(main).start_server(port)
9 plac.call(main)
H A Dexample12.py2 import plac
5 @plac.annotations(
18 for output in plac.call(main):
H A Dexample10.py2 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 DMathTools.java182 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 Dnode.c759 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 …]

12345678910>>...56