/dports/astro/py-astropy/astropy-5.0/astropy/units/ |
H A D | si.py | 10 from .core import UnitBase, Unit, def_unit 28 def_unit(['m', 'meter'], namespace=_ns, prefixes=True, 31 def_unit(['micron'], um, namespace=_ns, 72 def_unit(['mas'], 0.001 * arcsec, namespace=_ns, 94 def_unit(['sday'], 86164.09053 * s, namespace=_ns, 96 def_unit(['wk', 'week'], 7 * day, namespace=_ns) 97 def_unit(['fortnight'], 2 * wk, namespace=_ns) 114 def_unit(['kg', 'kilogram'], namespace=_ns, 133 def_unit( 136 def_unit( [all …]
|
H A D | imperial.py | 22 from .core import UnitBase, def_unit 30 def_unit(['inch'], 2.54 * si.cm, namespace=_ns, 32 def_unit(['ft', 'foot'], 12 * inch, namespace=_ns, 34 def_unit(['yd', 'yard'], 3 * ft, namespace=_ns, 36 def_unit(['mi', 'mile'], 5280 * ft, namespace=_ns, 58 def_unit(['quart'], gallon / 4, namespace=_ns, 60 def_unit(['pint'], quart / 2, namespace=_ns, 62 def_unit(['cup'], pint / 2, namespace=_ns, 81 def_unit(['ton'], 2000 * lb, namespace=_ns, 118 def_unit('psi', lbf * inch ** -2, namespace=_ns, [all …]
|
H A D | astrophys.py | 72 def_unit(['Ry', 'rydberg'], 90 def_unit((['ph', 'photon'], ['photon']), 96 def_unit(['R', 'Rayleigh', 'rayleigh'], 106 def_unit((['ct', 'count'], ['count']), 109 def_unit(['adu'], namespace=_ns, prefixes=True) 110 def_unit(['DN', 'dn'], namespace=_ns, prefixes=False) 119 def_unit(['Sun'], namespace=_ns) 120 def_unit(['chan'], namespace=_ns, prefixes=True) 121 def_unit(['bin'], namespace=_ns, prefixes=True) 122 def_unit(['beam'], namespace=_ns, prefixes=True) [all …]
|
H A D | cgs.py | 12 from .core import UnitBase, def_unit 17 def_unit(['cm', 'centimeter'], si.cm, namespace=_ns, prefixes=False) 47 def_unit(['dyn', 'dyne'], g * cm / s ** 2, namespace=_ns, 63 def_unit(['P', 'poise'], g / (cm * s), namespace=_ns, 71 def_unit(['St', 'stokes'], cm ** 2 / s, namespace=_ns, 79 def_unit(['k', 'Kayser', 'kayser'], cm ** -1, namespace=_ns, 91 def_unit(['Fr', 'Franklin', 'statcoulomb', 'statC', 'esu'], 96 def_unit(['statA', 'statampere'], Fr * s ** -1, namespace=_ns, 99 def_unit(['Bi', 'Biot', 'abA', 'abampere'], 103 def_unit(['abC', 'abcoulomb'], Bi * s, namespace=_ns, [all …]
|
H A D | misc.py | 12 from .core import (UnitBase, def_unit, si_prefixes, binary_prefixes, 32 def_unit(['cycle', 'cy'], 2.0 * _numpy.pi * si.rad, 36 def_unit(['spat', 'sp'], 4.0 * _numpy.pi * si.sr, 43 def_unit(['bar'], 1e5 * si.Pa, namespace=_ns, 59 def_unit(['M_p'], _si.m_p, namespace=_ns, doc="Proton mass", 64 def_unit(['u', 'Da', 'Dalton'], _si.u, namespace=_ns, 72 def_unit((['bit', 'b'], ['bit']), namespace=_ns, 74 def_unit((['byte', 'B'], ['byte']), 8 * bit, namespace=_ns, 78 def_unit((['pix', 'pixel'], ['pixel']), 81 def_unit((['vox', 'voxel'], ['voxel']), [all …]
|
H A D | photometric.py | 13 from .core import UnitBase, def_unit, Unit 21 def_unit(['Bol', 'L_bol'], _si.L_bol0, namespace=_ns, prefixes=False, 24 def_unit(['bol', 'f_bol'], _si.L_bol0 / (4 * _numpy.pi * (10.*astrophys.pc)**2), 27 def_unit(['AB', 'ABflux'], 10.**(48.6/-2.5) * cgs.erg * cgs.cm**-2 / si.s / si.Hz, 30 def_unit(['ST', 'STflux'], 10.**(21.1/-2.5) * cgs.erg * cgs.cm**-2 / si.s / si.AA, 34 def_unit(['mgy', 'maggy'], 59 del def_unit
|
H A D | cds.py | 142 core.def_unit(names, unit, prefixes=prefixes, namespace=_ns, doc=doc, 145 core.def_unit(['µas'], u.microarcsecond, 147 core.def_unit(['mas'], u.milliarcsecond, 149 core.def_unit(['---', '-'], u.dimensionless_unscaled, 151 core.def_unit(['%'], u.percent, 156 core.def_unit(['Crab'], prefixes=prefixes, namespace=_ns,
|
H A D | deprecated.py | 28 from .core import def_unit, _add_prefixes 30 def_unit(['emu'], cgs.Bi, namespace=_ns,
|
/dports/science/antioch/antioch-0.4.0-156-g90ffa43/src/parsing/src/ |
H A D | read_reaction_set_data.C | 329 Units<NumericType> def_unit; in read_reaction_set_data() local 367 def_unit.set_unit("m3/mol"); in read_reaction_set_data() 371 def_unit *= pow_unit; in read_reaction_set_data() 374 def_unit.clear(); in read_reaction_set_data() 383 def_unit *= pow_unit; in read_reaction_set_data() 386 def_unit.clear(); in read_reaction_set_data() 498 (par_unit.empty())?def_unit.set_unit(default_unit):def_unit.set_unit(par_unit); in read_reaction_set_data() 500 def_unit.substract("K"); in read_reaction_set_data() 546 … NumericType bin_coefficient = (def_unit.is_homogeneous("nm"))?def_unit.factor_to_some_unit("nm"): in read_reaction_set_data() 672 Units<NumericType> def_unit; in read_reaction_set_data() local [all …]
|
H A D | xml_parser.C | 620 def_unit = _default_unit.at(ParsingKey::PREEXP); in rate_constant_preexponential_parameter() 628 def_unit = _default_unit.at(ParsingKey::POWER); in rate_constant_power_parameter() 635 def_unit = _default_unit.at(ParsingKey::ACTIVATION_ENERGY); in rate_constant_activation_energy_parameter() 642 def_unit = _default_unit.at(ParsingKey::BERTHELOT_COEFFICIENT); in rate_constant_Berthelot_coefficient_parameter() 649 def_unit = _default_unit.at(ParsingKey::HV_LAMBDA); in rate_constant_lambda_parameter() 656 def_unit = _default_unit.at(ParsingKey::HV_CROSS_SECTION); in rate_constant_cross_section_parameter() 663 def_unit = _default_unit.at(ParsingKey::TREF); in rate_constant_Tref_parameter() 738 def_unit = _default_unit.at(ParsingKey::TROE_F_ALPHA); in Troe_alpha_parameter() 748 def_unit = _default_unit.at(ParsingKey::TROE_F_TS); in Troe_T1_parameter() 758 def_unit = _default_unit.at(ParsingKey::TROE_F_TSS); in Troe_T2_parameter() [all …]
|
H A D | chemkin_parser.C | 357 def_unit = _default_unit.at(ParsingKey::PREEXP); in rate_constant_preexponential_parameter() 359 Units<NumericType> A_u(def_unit); in rate_constant_preexponential_parameter() 384 def_unit = b_unit; in rate_constant_power_parameter() 398 def_unit = Ea_unit; in rate_constant_activation_energy_parameter() 408 def_unit = Tref_unit; in rate_constant_Tref_parameter() 424 def_unit = alpha_unit; in Troe_alpha_parameter() 430 …ericType>::Troe_T1_parameter(NumericType & T1, std::string & T1_unit, std::string & def_unit) const in Troe_T1_parameter() argument 434 def_unit = T1_unit; in Troe_T1_parameter() 440 …ericType>::Troe_T2_parameter(NumericType & T2, std::string & T2_unit, std::string & def_unit) const in Troe_T2_parameter() argument 444 def_unit = T2_unit; in Troe_T2_parameter() [all …]
|
/dports/mail/postfix-current/postfix-3.7-20211107/src/global/ |
H A D | mail_conf_time.c | 109 static int convert_mail_conf_time(const char *name, int *intval, int def_unit) in convert_mail_conf_time() argument 115 if (conv_time(strval, intval, def_unit) == 0) in convert_mail_conf_time() 156 int def_unit; in get_mail_conf_time() local 158 def_unit = get_def_time_unit(name, defval); in get_mail_conf_time() 159 if (convert_mail_conf_time(name, &intval, def_unit) == 0) in get_mail_conf_time() 161 if (convert_mail_conf_time(name, &intval, def_unit) == 0) in get_mail_conf_time() 170 int defval, int def_unit, int min, int max) in get_mail_conf_time2() argument 176 if (convert_mail_conf_time(name, &intval, def_unit) == 0) in get_mail_conf_time2() 178 if (convert_mail_conf_time(name, &intval, def_unit) == 0) in get_mail_conf_time2()
|
H A D | attr_override.c | 140 int def_unit; in attr_override() local 180 def_unit = tp->defval[strspn(tp->defval, "0123456789")]; in attr_override() 181 if (conv_time(value, &int_val, def_unit) == 0) in attr_override()
|
H A D | conv_time.c | 67 int conv_time(const char *strval, int *timval, int def_unit) in conv_time() argument 79 switch (*end ? *end : def_unit) { in conv_time()
|
/dports/science/antioch/antioch-0.4.0-156-g90ffa43/src/parsing/include/antioch/ |
H A D | xml_parser.h | 162 …ponential_parameter( NumericType & A, std::string & A_unit, std::string & def_unit) const; 165 …_parameter( NumericType & b, std::string & b_unit, std::string & def_unit) const; 168 …vation_energy_parameter(NumericType & Ea, std::string & Ea_unit, std::string & def_unit) const; 171 …t_coefficient_parameter(NumericType & D, std::string & D_unit, std::string & def_unit) const; 174 …parameter( NumericType & Tref, std::string & Tref_unit, std::string & def_unit) const; 177 … std::vector<NumericType> & lambda, std::string & lambda_unit, std::string & def_unit) const; 180 …ameter(std::vector<NumericType> & sigma, std::string & sigma_unit, std::string & def_unit) const; 189 … Troe_alpha_parameter(NumericType & alpha, std::string & alpha_unit, std::string & def_unit) const; 192 … Troe_T1_parameter( NumericType & T1, std::string & T1_unit, std::string & def_unit) const; 195 … Troe_T2_parameter( NumericType & T2, std::string & T2_unit, std::string & def_unit) const; [all …]
|
H A D | chemkin_parser.h | 169 …ponential_parameter( NumericType & A, std::string & A_unit, std::string & def_unit) const; 172 …_parameter( NumericType & b, std::string & b_unit, std::string & def_unit) const; 175 …vation_energy_parameter(NumericType & Ea, std::string & Ea_unit, std::string & def_unit) const; 178 …t_coefficient_parameter(NumericType & D, std::string & D_unit, std::string & def_unit) const; 181 …parameter( NumericType & Tref, std::string & Tref_unit, std::string & def_unit) const; 184 … std::vector<NumericType> & lambda, std::string & lambda_unit, std::string & def_unit) const; 187 …ameter(std::vector<NumericType> & sigma, std::string & sigma_unit, std::string & def_unit) const; 196 … Troe_alpha_parameter(NumericType & alpha, std::string & alpha_unit, std::string & def_unit) const; 199 … Troe_T1_parameter( NumericType & T1, std::string & T1_unit, std::string & def_unit) const; 202 … Troe_T2_parameter( NumericType & T2, std::string & T2_unit, std::string & def_unit) const; [all …]
|
/dports/astro/py-astropy/astropy-5.0/docs/units/ |
H A D | combining_and_defining.rst | 57 using the :func:`~astropy.units.def_unit` function:: 59 >>> bakers_fortnight = u.def_unit('bakers_fortnight', 13 * u.day) 69 >>> titter = u.def_unit('titter') 70 >>> chuckle = u.def_unit('chuckle', 5 * titter) 71 >>> laugh = u.def_unit('laugh', 4 * chuckle) 72 >>> guffaw = u.def_unit('guffaw', 3 * laugh) 73 >>> rofl = u.def_unit('rofl', 4 * guffaw) 74 >>> death_by_laughing = u.def_unit('death_by_laughing', 10 * rofl) 90 >>> kmph = u.def_unit('kmph', u.km / u.h)
|
/dports/www/apache24/httpd-2.4.53/modules/md/ |
H A D | md_time.c | 160 const char *def_unit) in md_duration_parse() argument 170 if (!def_unit) def_unit = "s"; in md_duration_parse() 176 def_unit = endp; in md_duration_parse() 179 switch (*def_unit) { in md_duration_parse() 195 switch (*(++def_unit)) { in md_duration_parse()
|
/dports/cad/gerbv/gerbv-2.7.0/src/ |
H A D | pick-and-place.c | 132 pick_and_place_get_float_unit(const char *str, const char *def_unit) in pick_and_place_get_float_unit() argument 142 unit = def_unit; in pick_and_place_get_float_unit() 233 char def_unit[41] = {0,}; in pick_and_place_parse_file() local 266 sscanf(&buf[strlen(def_unit_prefix)], "%40s.", def_unit); in pick_and_place_parse_file() 325 pnpPartData.mid_x = pick_and_place_get_float_unit(row[2], def_unit); in pick_and_place_parse_file() 326 pnpPartData.mid_y = pick_and_place_get_float_unit(row[3], def_unit); in pick_and_place_parse_file() 327 pnpPartData.ref_x = pick_and_place_get_float_unit(row[4], def_unit); in pick_and_place_parse_file() 328 pnpPartData.ref_y = pick_and_place_get_float_unit(row[5], def_unit); in pick_and_place_parse_file() 329 pnpPartData.pad_x = pick_and_place_get_float_unit(row[6], def_unit); in pick_and_place_parse_file() 330 pnpPartData.pad_y = pick_and_place_get_float_unit(row[7], def_unit); in pick_and_place_parse_file() [all …]
|
/dports/net/samba412/samba-4.12.15/source4/heimdal/lib/roken/ |
H A D | parse_units.c | 49 const char *def_unit, in parse_something() argument 58 if (def_unit != NULL) { in parse_something() 62 if (strcasecmp (u->name, def_unit) == 0) { in parse_something() 154 const char *def_unit) in parse_units() argument 156 return parse_something (s, units, def_unit, acc_units, 0, 0); in parse_units()
|
H A D | parse_time.c | 54 parse_time (const char *s, const char *def_unit) in parse_time() argument 56 return parse_units (s, time_units, def_unit); in parse_time()
|
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/heimdal/lib/roken/ |
H A D | parse_units.c | 52 const char *def_unit, in parse_something() argument 61 if (def_unit != NULL) { in parse_something() 65 if (strcasecmp (u->name, def_unit) == 0) { in parse_something() 157 const char *def_unit) in parse_units() argument 159 return parse_something (s, units, def_unit, acc_units, 0, 0); in parse_units()
|
H A D | parse_time.c | 57 parse_time (const char *s, const char *def_unit) in parse_time() argument 59 return parse_units (s, time_units, def_unit); in parse_time()
|
/dports/devel/stxxl/stxxl-1.4.1/lib/common/ |
H A D | utils.cpp | 24 bool parse_SI_IEC_size(const std::string& str, uint64& size, char def_unit) in parse_SI_IEC_size() argument 58 switch (def_unit) in parse_SI_IEC_size()
|
/dports/astro/py-astropy/astropy-5.0/astropy/cosmology/ |
H A D | units.py | 27 redshift = u.def_unit(['redshift'], prefixes=False, namespace=_ns, 35 littleh = u.def_unit(['littleh'], namespace=_ns, prefixes=False,
|