Skip to content

Commit 2602f73

Browse files
authored
Merge pull request #122 from CitrineInformatics/feature/accept-capital-units
Augment set of acceptable units
2 parents 9cf8afe + 6081a14 commit 2602f73

File tree

2 files changed

+51
-51
lines changed

2 files changed

+51
-51
lines changed

gemd/units/citrine_en.txt

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ sesqui- = 1.5
146146

147147
meter = [length] = m = metre
148148
second = [time] = s = sec
149-
ampere = [current] = A = amp
149+
ampere = [current] = A = amp = Ampere = Ampère
150150
candela = [luminosity] = cd = candle
151151
gram = [mass] = g
152152
mole = [substance] = mol
153-
kelvin = [temperature]; offset: 0 = K = degK = °K = degree_Kelvin = degreeK # older names supported for compatibility
153+
kelvin = [temperature]; offset: 0 = K = Kelvin = degK = °K = degree_Kelvin = degreeK # older names supported for compatibility
154154
radian = [] = rad
155155
neper = [] = Np
156156
bit = []
@@ -188,14 +188,14 @@ byte = 8 * bit = B = octet
188188
baud = bit / second = Bd = bps
189189

190190
# Length
191-
angstrom = 1e-10 * meter = Å = ångström = Å
191+
angstrom = 1e-10 * meter = Å = ångström = Angstrom = Ångstrom = Å
192192
micron = micrometer = µ
193-
fermi = femtometer = fm
193+
fermi = femtometer = fm = Fermi
194194
light_year = speed_of_light * julian_year = ly = lightyear
195195
astronomical_unit = 149597870700 * meter = au # since Aug 2012
196196
parsec = 1 / tansec * astronomical_unit = pc
197197
nautical_mile = 1852 * meter = nmi
198-
bohr = hbar / (alpha * m_e * c) = a_0 = a0 = bohr_radius = atomic_unit_of_length = a_u_length
198+
bohr = hbar / (alpha * m_e * c) = a_0 = a0 = Bohr = bohr_radius = atomic_unit_of_length = a_u_length
199199
x_unit_Cu = K_alpha_Cu_d_220 * d_220 / 1537.4 = Xu_Cu
200200
x_unit_Mo = K_alpha_Mo_d_220 * d_220 / 707.831 = Xu_Mo
201201
angstrom_star = K_alpha_W_d_220 * d_220 / 0.2090100 = Å_star
@@ -204,7 +204,7 @@ planck_length = (hbar * gravitational_constant / c ** 3) ** 0.5
204204
# Mass
205205
metric_ton = 1e3 * kilogram = _ = tonne
206206
unified_atomic_mass_unit = atomic_mass_constant = _ = amu
207-
dalton = atomic_mass_constant = Da
207+
dalton = atomic_mass_constant = Da = Dalton
208208
grain = 64.79891 * milligram = gr
209209
gamma_mass = microgram
210210
carat = 200 * milligram = _ = karat
@@ -223,7 +223,7 @@ century = 100 * year = _ = centuries
223223
millennium = 1e3 * year = _ = millennia
224224
eon = 1e9 * year
225225
shake = 1e-8 * second
226-
svedberg = 1e-13 * second
226+
svedberg = 1e-13 * second = _ = Svedberg
227227
atomic_unit_of_time = hbar / E_h = a_u_time
228228
gregorian_year = 365.2425 * day
229229
sidereal_year = 365.256363004 * day # approximate, as of J2000 epoch
@@ -237,18 +237,18 @@ synodic_month = 29.530589 * day = _ = lunar_month # approximate
237237
planck_time = (hbar * gravitational_constant / c ** 5) ** 0.5
238238

239239
# Temperature
240-
degree_Celsius = kelvin; offset: 273.15 = °C = celsius = degC = degreeC
241-
degree_Rankine = 5 / 9 * kelvin; offset: 0 = °R = rankine = degR = degreeR
242-
degree_Fahrenheit = 5 / 9 * kelvin; offset: 233.15 + 200 / 9 = °F = fahrenheit = degF = degreeF
243-
degree_Reaumur = 4 / 5 * kelvin; offset: 273.15 = °Re = reaumur = degRe = degreeRe = degree_Réaumur = réaumur
240+
degree_Celsius = kelvin; offset: 273.15 = °C = celsius = Celsius = degC = degreeC
241+
degree_Rankine = 5 / 9 * kelvin; offset: 0 = °R = rankine = Rankine = degR = degreeR
242+
degree_Fahrenheit = 5 / 9 * kelvin; offset: 233.15 + 200 / 9 = °F = fahrenheit = Fahrenheit = degF = degreeF
243+
degree_Reaumur = 4 / 5 * kelvin; offset: 273.15 = °Re = reaumur = Reaumur = degRe = degreeRe = degree_Réaumur = réaumur = Réaumur
244244
atomic_unit_of_temperature = E_h / k = a_u_temp
245245
planck_temperature = (hbar * c ** 5 / gravitational_constant / k ** 2) ** 0.5
246246

247247
# Area
248248
[area] = [length] ** 2
249249
are = 100 * meter ** 2
250250
barn = 1e-28 * meter ** 2 = b
251-
darcy = centipoise * centimeter ** 2 / (second * atmosphere)
251+
darcy = centipoise * centimeter ** 2 / (second * atmosphere) = _ = Darcy
252252
hectare = 100 * are = ha
253253

254254
# Volume
@@ -260,13 +260,13 @@ stere = meter ** 3
260260

261261
# Frequency
262262
[frequency] = 1 / [time]
263-
hertz = 1 / second = Hz
263+
hertz = 1 / second = Hz = Hertz
264264
revolutions_per_minute = revolution / minute = rpm
265265
counts_per_second = count / second = cps
266266

267267
# Wavenumber
268268
[wavenumber] = 1 / [length]
269-
reciprocal_centimeter = 1 / cm = cm_1 = kayser
269+
reciprocal_centimeter = 1 / cm = cm_1 = kayser = Kayser
270270

271271
# Velocity
272272
[velocity] = [length] / [time] = [speed]
@@ -279,11 +279,11 @@ foot_per_second = foot / second = fps
279279

280280
# Acceleration
281281
[acceleration] = [velocity] / [time]
282-
galileo = centimeter / second ** 2 = Gal
282+
galileo = centimeter / second ** 2 = Gal = Galileo
283283

284284
# Force
285285
[force] = [mass] * [acceleration]
286-
newton = kilogram * meter / second ** 2 = N
286+
newton = kilogram * meter / second ** 2 = N = Newton
287287
dyne = gram * centimeter / second ** 2 = dyn
288288
force_kilogram = g_0 * kilogram = kgf = kilogram_force = pond
289289
force_gram = g_0 * gram = gf = gram_force
@@ -292,12 +292,12 @@ atomic_unit_of_force = E_h / a_0 = a_u_force
292292

293293
# Energy
294294
[energy] = [force] * [length]
295-
joule = newton * meter = J
295+
joule = newton * meter = J = Joule
296296
erg = dyne * centimeter
297-
watt_hour = watt * hour = Wh = watthour
297+
watt_hour = watt * hour = Wh = watthour = Whr
298298
electron_volt = e * volt = eV
299-
rydberg = h * c * R_inf = Ry
300-
hartree = 2 * rydberg = E_h = Eh = hartree_energy = atomic_unit_of_energy = a_u_energy
299+
rydberg = h * c * R_inf = Ry = Rydberg
300+
hartree = 2 * rydberg = E_h = Eh = Hartree = hartree_energy = atomic_unit_of_energy = a_u_energy
301301
calorie = 4.184 * joule = cal = thermochemical_calorie = cal_th
302302
international_calorie = 4.1868 * joule = cal_it = international_steam_table_calorie
303303
fifteen_degree_calorie = 4.1855 * joule = cal_15
@@ -313,7 +313,7 @@ atmosphere_liter = atmosphere * liter = atm_l
313313

314314
# Power
315315
[power] = [energy] / [time]
316-
watt = joule / second = W
316+
watt = joule / second = W = Watt
317317
volt_ampere = volt * ampere = VA
318318
horsepower = 550 * foot * force_pound / second = hp = UK_horsepower = hydraulic_horsepower
319319
boiler_horsepower = 33475 * Btu / hour # unclear which Btu
@@ -333,12 +333,12 @@ water_60F = 0.999001 * kilogram / liter # approximate
333333

334334
# Pressure
335335
[pressure] = [force] / [area]
336-
pascal = newton / meter ** 2 = Pa
336+
pascal = newton / meter ** 2 = Pa = Pascal
337337
barye = dyne / centimeter ** 2 = Ba = barie = barad = barrie = baryd
338338
bar = 1e5 * pascal
339339
technical_atmosphere = kilogram * g_0 / centimeter ** 2 = at
340-
torr = atm / 760
341-
pound_force_per_square_inch = force_pound / inch ** 2 = psi
340+
torr = atm / 760 = _ = Torr
341+
pound_force_per_square_inch = force_pound / inch ** 2 = psi = PSI
342342
kip_per_square_inch = kip / inch ** 2 = ksi
343343
millimeter_Hg = millimeter * Hg * g_0 = mmHg = mm_Hg = millimeter_Hg_0C
344344
centimeter_Hg = centimeter * Hg * g_0 = cmHg = cm_Hg = centimeter_Hg_0C
@@ -360,7 +360,7 @@ reyn = psi * second
360360

361361
# Kinematic viscosity
362362
[kinematic_viscosity] = [area] / [time]
363-
stokes = centimeter ** 2 / second = St
363+
stokes = centimeter ** 2 / second = St = Stokes
364364

365365
# Fluidity
366366
[fluidity] = 1 / [viscosity]
@@ -380,32 +380,32 @@ enzyme_unit = micromole / minute = U = enzymeunit
380380

381381
# Entropy
382382
[entropy] = [energy] / [temperature]
383-
clausius = calorie / kelvin = _ = clausius
383+
clausius = calorie / kelvin = _ = Clausius
384384

385385
# Molar entropy
386386
[molar_entropy] = [entropy] / [substance]
387387
entropy_unit = calorie / kelvin / mole = eu
388388

389389
# Radiation
390-
becquerel = counts_per_second = Bq
391-
curie = 3.7e10 * becquerel = Ci
392-
rutherford = 1e6 * becquerel = Rd
393-
gray = joule / kilogram = Gy
394-
sievert = joule / kilogram = Sv
390+
becquerel = counts_per_second = Bq = Becquerel
391+
curie = 3.7e10 * becquerel = Ci = Curie
392+
rutherford = 1e6 * becquerel = Rd = Rutherford
393+
gray = joule / kilogram = Gy = Gray
394+
sievert = joule / kilogram = Sv = Sievert
395395
rads = 0.01 * gray
396396
rem = 0.01 * sievert
397-
roentgen = 2.58e-4 * coulomb / kilogram = _ = röntgen # approximate, depends on medium
397+
roentgen = 2.58e-4 * coulomb / kilogram = _ = Roentgen = röntgen = Röntgen # approximate, depends on medium
398398

399399
# Heat transimission
400400
[heat_transmission] = [energy] / [area]
401401
peak_sun_hour = 1e3 * watt_hour / meter ** 2 = PSH
402-
langley = thermochemical_calorie / centimeter ** 2 = Ly
402+
langley = thermochemical_calorie / centimeter ** 2 = Ly = Langley
403403

404404
# Luminance
405405
[luminance] = [luminosity] / [area]
406406
nit = candela / meter ** 2
407407
stilb = candela / centimeter ** 2
408-
lambert = 1 / π * candela / centimeter ** 2
408+
lambert = 1 / π * candela / centimeter ** 2 = _ = Lambert
409409

410410
# Luminous flux
411411
[luminous_flux] = [luminosity]
@@ -420,7 +420,7 @@ lux = lumen / meter ** 2 = lx
420420
atomic_unit_of_intensity = 0.5 * ε_0 * c * atomic_unit_of_electric_field ** 2 = a_u_intensity
421421

422422
# Current
423-
biot = 10 * ampere = Bi
423+
biot = 10 * ampere = Bi = Biot
424424
abampere = biot = abA
425425
atomic_unit_of_current = e / atomic_unit_of_time = a_u_current
426426
mean_international_ampere = mean_international_volt / mean_international_ohm = A_it
@@ -430,14 +430,14 @@ planck_current = (c ** 6 / gravitational_constant / k_C) ** 0.5
430430

431431
# Charge
432432
[charge] = [current] * [time]
433-
coulomb = ampere * second = C
433+
coulomb = ampere * second = C = Coulomb
434434
abcoulomb = 10 * C = abC
435-
faraday = e * N_A * mole
435+
faraday = e * N_A * mole = _ = Faraday
436436
conventional_coulomb_90 = K_J90 * R_K90 / (K_J * R_K) * coulomb = C_90
437437

438438
# Electric potential
439439
[electric_potential] = [energy] / [charge]
440-
volt = joule / coulomb = V
440+
volt = joule / coulomb = V = Volt
441441
abvolt = 1e-8 * volt = abV
442442
mean_international_volt = 1.00034 * volt = V_it # approximate
443443
US_international_volt = 1.00033 * volt = V_US # approximate
@@ -452,7 +452,7 @@ atomic_unit_of_electric_field = e * k_C / a_0 ** 2 = a_u_electric_field
452452

453453
# Resistance
454454
[resistance] = [electric_potential] / [current]
455-
ohm = volt / ampere = Ω
455+
ohm = volt / ampere = Ω = Ohm
456456
abohm = 1e-9 * ohm = abΩ
457457
mean_international_ohm = 1.00049 * ohm = Ω_it = ohm_it # approximate
458458
US_international_ohm = 1.000495 * ohm = Ω_US = ohm_US # approximate
@@ -463,7 +463,7 @@ conventional_ohm_90 = R_K / R_K90 * ohm = Ω_90 = ohm_90
463463

464464
# Conductance
465465
[conductance] = [current] / [electric_potential]
466-
siemens = ampere / volt = S = mho
466+
siemens = ampere / volt = S = mho = Siemens
467467
absiemens = 1e9 * siemens = abS = abmho
468468

469469
# Capacitance
@@ -474,36 +474,36 @@ conventional_farad_90 = R_K90 / R_K * farad = F_90
474474

475475
# Inductance
476476
[inductance] = [magnetic_flux] / [current]
477-
henry = weber / ampere = H
477+
henry = weber / ampere = H = Henry
478478
abhenry = 1e-9 * henry = abH
479479
conventional_henry_90 = R_K / R_K90 * henry = H_90
480480

481481
# Magnetic flux
482482
[magnetic_flux] = [electric_potential] * [time]
483-
weber = volt * second = Wb
483+
weber = volt * second = Wb = Weber
484484
unit_pole = µ_0 * biot * centimeter
485485

486486
# Magnetic field
487487
[magnetic_field] = [magnetic_flux] / [area]
488-
tesla = weber / meter ** 2 = T
488+
tesla = weber / meter ** 2 = T = Tesla
489489
gamma = 1e-9 * tesla = γ
490490

491491
# Magnetomotive force
492492
[magnetomotive_force] = [current]
493493
ampere_turn = ampere = At
494494
biot_turn = biot
495-
gilbert = 1 / (4 * π) * biot_turn = _ = gilbert
495+
gilbert = 1 / (4 * π) * biot_turn = _ = Gilbert
496496

497497
# Magnetic field strength
498498
[magnetic_field_strength] = [current] / [length]
499499

500500
# Electric dipole moment
501501
[electric_dipole] = [charge] * [length]
502-
debye = 1e-9 / ζ * coulomb * angstrom = D # formally 1 D = 1e-10 Fr*Å, but we generally want to use it outside the Gaussian context
502+
debye = 1e-9 / ζ * coulomb * angstrom = D = Debye # formally 1 D = 1e-10 Fr*Å, but we generally want to use it outside the Gaussian context
503503

504504
# Electric quadrupole moment
505505
[electric_quadrupole] = [charge] * [area]
506-
buckingham = debye * angstrom
506+
buckingham = debye * angstrom = Buckingham
507507

508508
# Magnetic dipole moment
509509
[magnetic_dipole] = [current] * [area]
@@ -681,12 +681,12 @@ nuclear_magneton = e * hbar / (2 * m_p) = µ_N = mu_N
681681

682682
# === Gaussian system of units ===
683683
@group Gaussian
684-
franklin = erg ** 0.5 * centimeter ** 0.5 = Fr = statcoulomb = statC = esu
684+
franklin = erg ** 0.5 * centimeter ** 0.5 = Fr = Franklin = statcoulomb = statC = esu
685685
statvolt = erg / franklin = statV
686686
statampere = franklin / second = statA
687-
gauss = dyne / franklin = G
688-
maxwell = gauss * centimeter ** 2 = Mx
689-
oersted = dyne / maxwell = Oe = ørsted
687+
gauss = dyne / franklin = G = Gauss
688+
maxwell = gauss * centimeter ** 2 = Mx = Maxwell
689+
oersted = dyne / maxwell = Oe = ørsted = Oersted = Ørsted
690690
statohm = statvolt / statampere = statΩ
691691
statfarad = franklin / statvolt = statF
692692
statmho = statampere / statvolt

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def run(self):
3636

3737

3838
setup(name='gemd',
39-
version='0.14.1',
39+
version='0.14.2',
4040
url='http://github.com/CitrineInformatics/gemd-python',
4141
description="Python binding for Citrine's GEMD data model",
4242
author='Max Hutchinson',

0 commit comments

Comments
 (0)