symcrys 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/crystalClasses.d.ts +106 -1
- package/dist/crystalClasses.d.ts.map +1 -1
- package/dist/crystalClasses.js +80 -1
- package/dist/crystalClasses.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lattice.d.ts +5 -1
- package/dist/lattice.d.ts.map +1 -1
- package/dist/lattice.js +3 -1
- package/dist/lattice.js.map +1 -1
- package/dist/magnetic.d.ts +3 -0
- package/dist/magnetic.d.ts.map +1 -1
- package/dist/magnetic.js +2 -0
- package/dist/magnetic.js.map +1 -1
- package/dist/operations.d.ts +2 -0
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js.map +1 -1
- package/dist/pointGroups/crystalForms.d.ts +70 -0
- package/dist/pointGroups/crystalForms.d.ts.map +1 -0
- package/dist/pointGroups/crystalForms.js +69 -0
- package/dist/pointGroups/crystalForms.js.map +1 -0
- package/dist/pointGroups/crystalFormsData.d.ts +32 -0
- package/dist/pointGroups/crystalFormsData.d.ts.map +1 -0
- package/dist/pointGroups/crystalFormsData.js +518 -0
- package/dist/pointGroups/crystalFormsData.js.map +1 -0
- package/dist/pointGroups/data.d.ts +2 -1
- package/dist/pointGroups/data.d.ts.map +1 -1
- package/dist/pointGroups/data.js.map +1 -1
- package/dist/pointGroups/elements.d.ts +9 -2
- package/dist/pointGroups/elements.d.ts.map +1 -1
- package/dist/pointGroups/elements.js +7 -3
- package/dist/pointGroups/elements.js.map +1 -1
- package/dist/pointGroups/identify.d.ts +75 -0
- package/dist/pointGroups/identify.d.ts.map +1 -0
- package/dist/pointGroups/identify.js +193 -0
- package/dist/pointGroups/identify.js.map +1 -0
- package/dist/pointGroups/magneticData.d.ts +6 -1
- package/dist/pointGroups/magneticData.d.ts.map +1 -1
- package/dist/pointGroups/magneticData.js +4 -0
- package/dist/pointGroups/magneticData.js.map +1 -1
- package/dist/pointGroups/orbits.d.ts +85 -0
- package/dist/pointGroups/orbits.d.ts.map +1 -0
- package/dist/pointGroups/orbits.js +134 -0
- package/dist/pointGroups/orbits.js.map +1 -0
- package/dist/pointGroups/pointGroups.d.ts +10 -2
- package/dist/pointGroups/pointGroups.d.ts.map +1 -1
- package/dist/pointGroups/pointGroups.js +2 -2
- package/dist/pointGroups/pointGroups.js.map +1 -1
- package/dist/pointGroups/wyckoff.d.ts +42 -1
- package/dist/pointGroups/wyckoff.d.ts.map +1 -1
- package/dist/pointGroups/wyckoff.js +55 -27
- package/dist/pointGroups/wyckoff.js.map +1 -1
- package/dist/siteSymmetry.d.ts +2 -1
- package/dist/siteSymmetry.d.ts.map +1 -1
- package/dist/siteSymmetry.js.map +1 -1
- package/dist/tensors/propertyTable.d.ts +12 -2
- package/dist/tensors/propertyTable.d.ts.map +1 -1
- package/dist/tensors/propertyTable.js +11 -2
- package/dist/tensors/propertyTable.js.map +1 -1
- package/dist/tensors/tensorForm.d.ts +6 -1
- package/dist/tensors/tensorForm.d.ts.map +1 -1
- package/dist/tensors/tensorForm.js +1 -1
- package/dist/tensors/tensorForm.js.map +1 -1
- package/dist/version.d.ts +6 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +6 -2
- package/dist/version.js.map +1 -1
- package/package.json +2 -2
- package/src/crystalClasses.ts +164 -3
- package/src/index.ts +12 -0
- package/src/lattice.ts +5 -1
- package/src/magnetic.ts +18 -0
- package/src/operations.ts +2 -0
- package/src/pointGroups/crystalForms.ts +143 -0
- package/src/pointGroups/crystalFormsData.ts +539 -0
- package/src/pointGroups/data.ts +4 -1
- package/src/pointGroups/elements.ts +10 -3
- package/src/pointGroups/identify.ts +255 -0
- package/src/pointGroups/magneticData.ts +7 -1
- package/src/pointGroups/orbits.ts +228 -0
- package/src/pointGroups/pointGroups.ts +10 -2
- package/src/pointGroups/wyckoff.ts +61 -26
- package/src/siteSymmetry.ts +2 -1
- package/src/tensors/propertyTable.ts +12 -2
- package/src/tensors/tensorForm.ts +6 -1
- package/src/version.ts +6 -2
|
@@ -38,6 +38,7 @@ export interface WyckoffPosition {
|
|
|
38
38
|
readonly millerIndices: string;
|
|
39
39
|
/** A representative face with numbers: `millerIndices` with h = 3, k = 2, l = 1. */
|
|
40
40
|
readonly representative: {
|
|
41
|
+
/** The Miller indices (hkl) of the face. */
|
|
41
42
|
readonly hkl: Hkl;
|
|
42
43
|
/**
|
|
43
44
|
* Its face normal, a Cartesian unit vector. Monoclinic and triclinic: the normal for a, b, c along
|
|
@@ -49,38 +50,39 @@ export interface WyckoffPosition {
|
|
|
49
50
|
readonly siteSymmetryOperations: readonly number[];
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
/** Convention and setting (`SettingOptions`) and the tolerance of `siteSymmetry` (`SiteSymmetryOptions`). */
|
|
52
54
|
export type WyckoffOptions = SettingOptions & SiteSymmetryOptions;
|
|
53
55
|
|
|
54
56
|
/** The values substituted into ITA's Miller indices for the numeric representative. */
|
|
55
|
-
const
|
|
57
|
+
export const REPRESENTATIVE_VALUES: Readonly<Record<'h' | 'k' | 'l', number>> = { h: 3, k: 2, l: 1 };
|
|
56
58
|
|
|
57
59
|
/** One printed index (`h`, `-2h`, `0`, `1`) as a number. */
|
|
58
|
-
function index(component: string): number {
|
|
60
|
+
function index(component: string, values: Readonly<Record<'h' | 'k' | 'l', number>>): number {
|
|
59
61
|
const m = /^(-?)(\d*)([hkil]?)$/.exec(component);
|
|
60
62
|
if (!m || (m[2] === '' && m[3] === '')) throw new Error(`Unreadable Miller index: ${component}`);
|
|
61
63
|
const sign = m[1] ? -1 : 1;
|
|
62
64
|
const factor = m[2] === '' ? 1 : Number(m[2]);
|
|
63
65
|
if (m[3] === '') return sign * factor;
|
|
64
|
-
if (m[3] === 'i') return sign * factor * -(
|
|
65
|
-
return sign * factor *
|
|
66
|
+
if (m[3] === 'i') return sign * factor * -(values.h + values.k);
|
|
67
|
+
return sign * factor * values[m[3] as 'h' | 'k' | 'l'];
|
|
66
68
|
}
|
|
67
69
|
|
|
68
|
-
/** Printed Miller indices (three, or four for hexagonal axes) as three numbers. */
|
|
69
|
-
function numericHkl(miller: string): Hkl {
|
|
70
|
-
const parts = miller.split(',').map(index);
|
|
70
|
+
/** Printed Miller indices (three, or four for hexagonal axes) as three numbers, with the given values of h, k, l. */
|
|
71
|
+
export function numericHkl(miller: string, values = REPRESENTATIVE_VALUES): Hkl {
|
|
72
|
+
const parts = miller.split(',').map((c) => index(c, values));
|
|
71
73
|
if (parts.length === 3) return [parts[0], parts[1], parts[2]];
|
|
72
74
|
if (parts.length === 4 && parts[2] === -(parts[0] + parts[1])) return [parts[0], parts[1], parts[3]];
|
|
73
75
|
throw new Error(`Unreadable Miller indices: ${miller}`);
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
const IDENTITY: Mat3 = [
|
|
78
|
+
export const IDENTITY: Mat3 = [
|
|
77
79
|
[1, 0, 0],
|
|
78
80
|
[0, 1, 0],
|
|
79
81
|
[0, 0, 1],
|
|
80
82
|
];
|
|
81
83
|
|
|
82
84
|
/** The face normal of (hkl) as a Cartesian unit vector: h a* + k b* + l c* with the reciprocal basis B⁻ᵀ. */
|
|
83
|
-
function normal(basis: Mat3, hkl: Hkl): Vec3 {
|
|
85
|
+
export function normal(basis: Mat3, hkl: Hkl): Vec3 {
|
|
84
86
|
const v = apply(transpose(inverse(basis)), hkl);
|
|
85
87
|
const n = Math.hypot(v[0], v[1], v[2]);
|
|
86
88
|
return [v[0] / n, v[1] / n, v[2] / n];
|
|
@@ -94,7 +96,7 @@ const HKL = 'hkl';
|
|
|
94
96
|
* Only for components that are `0`, a number, or a plain letter with an optional `-` (as in `mm2`); a
|
|
95
97
|
* letter is renamed after its new position. A factor such as `2x` throws.
|
|
96
98
|
*/
|
|
97
|
-
function permutePattern(pattern: string, r: Mat3, letters: string): string {
|
|
99
|
+
export function permutePattern(pattern: string, r: Mat3, letters: string): string {
|
|
98
100
|
const old = pattern.split(',');
|
|
99
101
|
if (old.length !== 3) throw new Error(`Cannot carry ${pattern} into another setting`);
|
|
100
102
|
return [0, 1, 2]
|
|
@@ -125,14 +127,12 @@ function isSignedPermutation(r: Mat3): boolean {
|
|
|
125
127
|
);
|
|
126
128
|
}
|
|
127
129
|
|
|
128
|
-
/**
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (entry) return entry.rows;
|
|
135
|
-
if (setting === 1) throw new Error(`Point group ${key}: no printed Wyckoff positions for setting 1`);
|
|
130
|
+
/**
|
|
131
|
+
* The signed permutation r that carries setting 1 of a class into `setting` (new axis i = r[i][j] ×
|
|
132
|
+
* old axis j), for the settings ITA does not print (`mm2` settings 2 and 3). Throws if the frame of
|
|
133
|
+
* the setting is not a permutation of that of setting 1.
|
|
134
|
+
*/
|
|
135
|
+
export function permutationFromSetting1(key: PointGroupKey, setting: number): Mat3 {
|
|
136
136
|
const d = POINT_GROUP_DATA.find((x) => x.key === key);
|
|
137
137
|
if (!d) throw new RangeError(`Unknown point group key: ${JSON.stringify(key)}`);
|
|
138
138
|
const f1 = d.settings[0].frame;
|
|
@@ -145,6 +145,29 @@ function printedRows(key: PointGroupKey, setting: number): readonly WyckoffRow[]
|
|
|
145
145
|
) {
|
|
146
146
|
throw new Error(`Point group ${key}, setting ${setting}: frame is not a permutation of setting 1`);
|
|
147
147
|
}
|
|
148
|
+
return r;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The entry of a table printed per setting (Wyckoff positions, face forms) for a setting of a class:
|
|
153
|
+
* the one with the ITC short symbol (and unique axis) of the setting, or undefined if ITA does not
|
|
154
|
+
* print the setting.
|
|
155
|
+
*/
|
|
156
|
+
export function printedEntry<E extends { readonly symbol: string; readonly uniqueAxis?: 'b' | 'c' }>(
|
|
157
|
+
table: readonly E[],
|
|
158
|
+
key: PointGroupKey,
|
|
159
|
+
setting: number,
|
|
160
|
+
): E | undefined {
|
|
161
|
+
const s = settings(key, 'itc')[setting - 1];
|
|
162
|
+
return table.find((e) => e.symbol === s.symbol && (e.uniqueAxis === undefined || e.uniqueAxis === s.uniqueAxis));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** The printed rows of a setting; for a setting ITA does not print, those of setting 1 carried into its frame. */
|
|
166
|
+
function printedRows(key: PointGroupKey, setting: number): readonly WyckoffRow[] {
|
|
167
|
+
const entry = printedEntry(ITA_WYCKOFF, key, setting);
|
|
168
|
+
if (entry) return entry.rows;
|
|
169
|
+
if (setting === 1) throw new Error(`Point group ${key}: no printed Wyckoff positions for setting 1`);
|
|
170
|
+
const r = permutationFromSetting1(key, setting);
|
|
148
171
|
return printedRows(key, 1).map(([letter, mult, site, coords, miller]) => [
|
|
149
172
|
letter,
|
|
150
173
|
mult,
|
|
@@ -154,16 +177,32 @@ function printedRows(key: PointGroupKey, setting: number): readonly WyckoffRow[]
|
|
|
154
177
|
]);
|
|
155
178
|
}
|
|
156
179
|
|
|
180
|
+
/**
|
|
181
|
+
* The lattice basis in which the Cartesian normals of the representatives are computed; monoclinic
|
|
182
|
+
* and triclinic: a, b, c along x, y, z (docs/conventions.md, "Site symmetry and Wyckoff positions").
|
|
183
|
+
*/
|
|
184
|
+
export function faceBasis(key: PointGroupKey): Mat3 {
|
|
185
|
+
const d = POINT_GROUP_DATA.find((x) => x.key === key);
|
|
186
|
+
if (!d) throw new RangeError(`Unknown point group key: ${JSON.stringify(key)}`);
|
|
187
|
+
const family = crystalFamily(d.crystalSystem);
|
|
188
|
+
return family === 'monoclinic' || family === 'triclinic' ? IDENTITY : latticeBasis(family);
|
|
189
|
+
}
|
|
190
|
+
|
|
157
191
|
const cache = new Map<string, readonly WyckoffPosition[]>();
|
|
158
192
|
|
|
159
|
-
|
|
193
|
+
/**
|
|
194
|
+
* The setting index for a table that exists for the crystal classes in the ITC convention only
|
|
195
|
+
* (`what`: 'Wyckoff positions', 'Crystal forms'); throws a RangeError for a magnetic point group
|
|
196
|
+
* with time reversal and for another convention.
|
|
197
|
+
*/
|
|
198
|
+
export function itcSetting(key: PointGroupKey, options?: SettingOptions, what = 'Wyckoff positions'): number {
|
|
160
199
|
if (isMagneticPointGroupKey(key) && !isPointGroupKey(key)) {
|
|
161
200
|
throw new RangeError(
|
|
162
|
-
|
|
201
|
+
`${what} are given for the 32 crystal classes only; ${JSON.stringify(key)} is a magnetic point group`,
|
|
163
202
|
);
|
|
164
203
|
}
|
|
165
204
|
if ((options?.convention ?? 'itc') !== 'itc') {
|
|
166
|
-
throw new RangeError(
|
|
205
|
+
throw new RangeError(`${what} exist in the ITC convention only (convention 'itc')`);
|
|
167
206
|
}
|
|
168
207
|
const list = settings(key, 'itc');
|
|
169
208
|
const index = options?.setting ?? list.find((s) => s.isDefault)?.index ?? 1;
|
|
@@ -184,11 +223,7 @@ export function wyckoffPositions(key: PointGroupKey, options?: SettingOptions):
|
|
|
184
223
|
let result = cache.get(cacheKey);
|
|
185
224
|
if (!result) {
|
|
186
225
|
const ops = operations(key, { convention: 'itc', setting });
|
|
187
|
-
const
|
|
188
|
-
if (!d) throw new RangeError(`Unknown point group key: ${JSON.stringify(key)}`);
|
|
189
|
-
const family = crystalFamily(d.crystalSystem);
|
|
190
|
-
// Monoclinic and triclinic: a, b, c along x, y, z (docs/conventions.md, "Site symmetry and Wyckoff positions").
|
|
191
|
-
const basis = family === 'monoclinic' || family === 'triclinic' ? IDENTITY : latticeBasis(family);
|
|
226
|
+
const basis = faceBasis(key);
|
|
192
227
|
result = Object.freeze(
|
|
193
228
|
printedRows(key, setting)
|
|
194
229
|
.filter(([letter]) => letter !== 'o')
|
package/src/siteSymmetry.ts
CHANGED
|
@@ -7,10 +7,11 @@ import { apply, matricesEqual, multiply, type Vec3 } from './linalg.js';
|
|
|
7
7
|
import type { Operation } from './operations.js';
|
|
8
8
|
import { EPSILON } from './tolerances.js';
|
|
9
9
|
|
|
10
|
+
/** Options of `siteSymmetry` and `wyckoffPositionOf`. */
|
|
10
11
|
export interface SiteSymmetryOptions {
|
|
11
12
|
/**
|
|
12
13
|
* A direction counts as fixed by an operation if the operation moves its unit vector by less
|
|
13
|
-
* than this (Euclidean distance). Default
|
|
14
|
+
* than this (Euclidean distance). Default 10⁻⁶; a caller whose directions carry
|
|
14
15
|
* rounding errors (e.g. read from a rounded link) passes a larger value.
|
|
15
16
|
*/
|
|
16
17
|
readonly tolerance?: number;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { TensorSpec } from './tensorForm.js';
|
|
9
9
|
|
|
10
|
+
/** A named property: the tensor that describes it, what it is and where it is defined. */
|
|
10
11
|
export interface TensorProperty {
|
|
11
12
|
/** The kind of tensor whose non-zero form means that the property is allowed. */
|
|
12
13
|
readonly spec: TensorSpec;
|
|
@@ -20,40 +21,49 @@ const property = (spec: TensorSpec, description: string, source: string): Tensor
|
|
|
20
21
|
Object.freeze({ spec: Object.freeze(spec), description, source });
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
|
-
* The named tensor properties.
|
|
24
|
-
*
|
|
24
|
+
* The named tensor properties. For each name, the tensor that describes the property, what it is,
|
|
25
|
+
* and its print source. `'gyrotropic'` is optical activity.
|
|
26
|
+
*
|
|
27
|
+
* @remarks Names are adjectives, one lower-case word each (maintainer, 2026-11-19, #41).
|
|
25
28
|
*/
|
|
26
29
|
export const TENSOR_PROPERTIES = Object.freeze({
|
|
30
|
+
/** Spontaneous polarization: a time-even polar vector. */
|
|
27
31
|
pyroelectric: property(
|
|
28
32
|
{ rank: 1, parity: 'polar', timeParity: 'i', intrinsic: 'none' },
|
|
29
33
|
'Spontaneous electric polarization, which changes with temperature: a polar vector p_i.',
|
|
30
34
|
'ITC Vol. D (2013), § 1.1.4.4.2, p. 12; classes: ITA (2016) Table 3.2.2.1, p. 738',
|
|
31
35
|
),
|
|
36
|
+
/** Ferroaxial order: a time-even axial vector. */
|
|
32
37
|
ferroaxial: property(
|
|
33
38
|
{ rank: 1, parity: 'axial', timeParity: 'i', intrinsic: 'none' },
|
|
34
39
|
'Ferroaxial (ferro-rotational) order, e.g. a net rotation of structural units about an axis: an axial vector A_i.',
|
|
35
40
|
'Hlinka, Privratska, Ondrejkovic & Janovec, Phys. Rev. Lett. 116, 177602 (2016); classes: Birss (1966), Tables 4a and 4c, pp. 56–58',
|
|
36
41
|
),
|
|
42
|
+
/** The piezoelectric effect (and second-harmonic generation, which has the same tensor): polar, rank 3, symmetric in j, k. */
|
|
37
43
|
piezoelectric: property(
|
|
38
44
|
{ rank: 3, parity: 'polar', timeParity: 'i', intrinsic: 'jk' },
|
|
39
45
|
'Electric polarization linear in stress, P_i = d_ijk T_jk: a polar tensor of rank 3, symmetric in j, k.',
|
|
40
46
|
'ITC Vol. D (2013), § 1.1.4.4.3, p. 12; classes: ITA (2016) Table 3.2.2.1, p. 738',
|
|
41
47
|
),
|
|
48
|
+
/** Optical activity: the symmetric axial tensor of rank 2. */
|
|
42
49
|
gyrotropic: property(
|
|
43
50
|
{ rank: 2, parity: 'axial', timeParity: 'i', intrinsic: 'ij' },
|
|
44
51
|
'Optical activity (optical rotation), G = g_ij α_i α_j: the symmetric part of the axial gyration tensor of rank 2.',
|
|
45
52
|
'ITC Vol. D (2013), § 1.1.4.10.7.2, p. 30; classes: ITA (2016) Table 3.2.2.1, p. 738',
|
|
46
53
|
),
|
|
54
|
+
/** Spontaneous magnetization: a time-odd axial vector (magnetic API only). */
|
|
47
55
|
ferromagnetic: property(
|
|
48
56
|
{ rank: 1, parity: 'axial', timeParity: 'c', intrinsic: 'none' },
|
|
49
57
|
'Spontaneous magnetization M_s (ferromagnets, ferrimagnets, weak ferromagnets): an axial vector that changes sign under time reversal.',
|
|
50
58
|
'ITC Vol. D (2013), § 1.5.2.1 with Table 1.5.2.4, p. 113',
|
|
51
59
|
),
|
|
60
|
+
/** The linear magnetoelectric effect: a time-odd axial tensor of rank 2 (magnetic API only). */
|
|
52
61
|
magnetoelectric: property(
|
|
53
62
|
{ rank: 2, parity: 'axial', timeParity: 'c', intrinsic: 'none' },
|
|
54
63
|
'Linear magnetoelectric effect, P_i = α_ij H_j: an axial tensor of rank 2 that changes sign under time reversal.',
|
|
55
64
|
'ITC Vol. D (2013), § 1.5.8.1 with eqs. (1.5.8.2), (1.5.8.3) and Table 1.5.8.1, pp. 139–140',
|
|
56
65
|
),
|
|
66
|
+
/** The piezomagnetic effect: a time-odd axial tensor of rank 3, symmetric in j, k (magnetic API only). */
|
|
57
67
|
piezomagnetic: property(
|
|
58
68
|
{ rank: 3, parity: 'axial', timeParity: 'c', intrinsic: 'jk' },
|
|
59
69
|
'Magnetization linear in stress, M_i = Λ_ijk T_jk: an axial tensor of rank 3, symmetric in j, k, that changes sign under time reversal.',
|
|
@@ -38,9 +38,13 @@ export type IntrinsicSymmetry = 'none' | 'ij' | 'jk' | 'ij_kl' | 'voigt';
|
|
|
38
38
|
|
|
39
39
|
/** The kind of tensor, as in birss-app. */
|
|
40
40
|
export interface TensorSpec {
|
|
41
|
+
/** Number of indices, 0 to 4. */
|
|
41
42
|
readonly rank: TensorRank;
|
|
43
|
+
/** `'polar'` or `'axial'`: whether an improper operation changes the sign (factor det R). */
|
|
42
44
|
readonly parity: TensorParity;
|
|
45
|
+
/** `'i'` (time-even) or `'c'` (time-odd): whether time reversal changes the sign. */
|
|
43
46
|
readonly timeParity: TimeParity;
|
|
47
|
+
/** The index symmetry of the tensor. */
|
|
44
48
|
readonly intrinsic: IntrinsicSymmetry;
|
|
45
49
|
}
|
|
46
50
|
|
|
@@ -50,6 +54,7 @@ export interface TensorSpec {
|
|
|
50
54
|
* components has length 3^rank (flat index, see the module documentation).
|
|
51
55
|
*/
|
|
52
56
|
export interface TensorForm {
|
|
57
|
+
/** The rank of the tensor. */
|
|
53
58
|
readonly rank: TensorRank;
|
|
54
59
|
/**
|
|
55
60
|
* A basis of the allowed tensors in reduced row echelon form: one row per free parameter, with 1
|
|
@@ -241,7 +246,7 @@ export function tensorForm(
|
|
|
241
246
|
* surface normal (`siteSymmetry`) or the operations of a distorted crystal. The tensor is given by
|
|
242
247
|
* its specification or by the name of a property in `TENSOR_PROPERTIES`. The operations are
|
|
243
248
|
* Cartesian and orthogonal, and each says whether it is combined with time reversal
|
|
244
|
-
* (`timeReversal`, true or false); a list that is not closed is closed first.
|
|
249
|
+
* (`timeReversal`, `true` or `false`); a list that is not closed is closed first.
|
|
245
250
|
*/
|
|
246
251
|
export function tensorFormOf(operations: readonly Operation[], spec: TensorSpec | TensorPropertyName): TensorForm {
|
|
247
252
|
const resolved = specOf(spec);
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The version of symcrys, the same for the TypeScript and the Python package.
|
|
3
|
+
*
|
|
4
|
+
* @remarks Kept equal to `version` in package.json (checked by version.test.ts).
|
|
5
|
+
*/
|
|
6
|
+
export const VERSION = '0.7.0';
|