antspymm 1.5.4__py3-none-any.whl → 1.5.6__py3-none-any.whl

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.
antspymm/__init__.py CHANGED
@@ -65,6 +65,8 @@ from .mm import mc_denoise
65
65
  from .mm import mc_reg
66
66
  from .mm import dti_reg
67
67
  from .mm import timeseries_reg
68
+ from .mm import timeseries_transform
69
+ from .mm import copy_spatial_metadata_from_3d_to_4d
68
70
  from .mm import concat_dewarp
69
71
  from .mm import mc_resample_image_to_target
70
72
  from .mm import trim_dti_mask
@@ -136,5 +138,7 @@ from .mm import segment_timeseries_by_bvalue
136
138
  from .mm import shorten_pymm_names
137
139
  from .mm import pet3d_summary
138
140
  from .mm import deformation_gradient_optimized
141
+ from .mm import efficient_dwi_fit_voxelwise
142
+ from .mm import generate_voxelwise_bvecs
139
143
 
140
144
 
antspymm/mm.py CHANGED
@@ -1794,6 +1794,89 @@ def merge_timeseries_data( img_LR, img_RL, allow_resample=True ):
1794
1794
  mimg.append( temp )
1795
1795
  return ants.list_to_ndimage( img_LR, mimg )
1796
1796
 
1797
+ def copy_spatial_metadata_from_3d_to_4d(spatial_img, timeseries_img):
1798
+ """
1799
+ Copy spatial metadata (origin, spacing, direction) from a 3D image to the
1800
+ spatial dimensions (first 3) of a 4D image, preserving the 4th dimension's metadata.
1801
+
1802
+ Parameters
1803
+ ----------
1804
+ spatial_img : ants.ANTsImage
1805
+ A 3D ANTsImage with the desired spatial metadata.
1806
+ timeseries_img : ants.ANTsImage
1807
+ A 4D ANTsImage to update.
1808
+
1809
+ Returns
1810
+ -------
1811
+ ants.ANTsImage
1812
+ A 4D ANTsImage with updated spatial metadata.
1813
+ """
1814
+ if spatial_img.dimension != 3:
1815
+ raise ValueError("spatial_img must be a 3D ANTsImage.")
1816
+ if timeseries_img.dimension != 4:
1817
+ raise ValueError("timeseries_img must be a 4D ANTsImage.")
1818
+ # Get 3D metadata
1819
+ spatial_origin = list(spatial_img.origin)
1820
+ spatial_spacing = list(spatial_img.spacing)
1821
+ spatial_direction = spatial_img.direction # 3x3
1822
+ # Get original 4D metadata
1823
+ ts_spacing = list(timeseries_img.spacing)
1824
+ ts_origin = list(timeseries_img.origin)
1825
+ ts_direction = timeseries_img.direction # 4x4
1826
+ # Replace only the first 3 entries for origin and spacing
1827
+ new_origin = spatial_origin + [ts_origin[3]]
1828
+ new_spacing = spatial_spacing + [ts_spacing[3]]
1829
+ # Replace top-left 3x3 block of direction matrix, preserve last row/column
1830
+ new_direction = ts_direction.copy()
1831
+ new_direction[:3, :3] = spatial_direction
1832
+ # Create updated image
1833
+ updated_img = ants.from_numpy(
1834
+ timeseries_img.numpy(),
1835
+ origin=new_origin,
1836
+ spacing=new_spacing,
1837
+ direction=new_direction
1838
+ )
1839
+ return updated_img
1840
+
1841
+ def timeseries_transform(transform, image, reference, interpolation='linear'):
1842
+ """
1843
+ Apply a spatial transform to each 3D volume in a 4D time series image.
1844
+
1845
+ Parameters
1846
+ ----------
1847
+ transform : ants transform object
1848
+ Path(s) to ANTs-compatible transform(s) to apply.
1849
+ image : ants.ANTsImage
1850
+ 4D input image with shape (X, Y, Z, T).
1851
+ reference : ants.ANTsImage
1852
+ Reference image to match in space.
1853
+ interpolation : str
1854
+ Interpolation method: 'linear', 'nearestNeighbor', etc.
1855
+
1856
+ Returns
1857
+ -------
1858
+ ants.ANTsImage
1859
+ 4D transformed image.
1860
+ """
1861
+ if image.dimension != 4:
1862
+ raise ValueError("Input image must be 4D (X, Y, Z, T).")
1863
+ n_volumes = image.shape[3]
1864
+ transformed_volumes = []
1865
+ for t in range(n_volumes):
1866
+ vol = ants.slice_image( image, 3, t )
1867
+ transformed = ants.apply_ants_transform_to_image(
1868
+ transform=transform,
1869
+ image=vol,
1870
+ reference=reference,
1871
+ interpolation=interpolation
1872
+ )
1873
+ transformed_volumes.append(transformed.numpy())
1874
+ # Stack along time axis and convert to ANTsImage
1875
+ transformed_array = np.stack(transformed_volumes, axis=-1)
1876
+ out_image = ants.from_numpy(transformed_array)
1877
+ out_image = ants.copy_image_info(image, out_image)
1878
+ out_image = copy_spatial_metadata_from_3d_to_4d(reference, out_image)
1879
+ return out_image
1797
1880
 
1798
1881
  def timeseries_reg(
1799
1882
  image,
@@ -3932,6 +4015,135 @@ def efficient_dwi_fit(gtab, diffusion_model, imagein, maskin,
3932
4015
  return full_fit, FA_img, MD_img, RGB_img
3933
4016
 
3934
4017
 
4018
+ def efficient_dwi_fit_voxelwise(imagein, maskin, bvals, bvecs_5d, model_params=None,
4019
+ bvals_to_use=None, num_threads=1, verbose=True):
4020
+ """
4021
+ Voxel-wise diffusion model fitting with individual b-vectors per voxel.
4022
+
4023
+ Parameters
4024
+ ----------
4025
+ imagein : ants.ANTsImage
4026
+ 4D DWI image (X, Y, Z, N).
4027
+ maskin : ants.ANTsImage
4028
+ 3D binary mask.
4029
+ bvals : (N,) array-like
4030
+ Common b-values across volumes.
4031
+ bvecs_5d : (X, Y, Z, N, 3) ndarray
4032
+ Voxel-specific b-vectors.
4033
+ model_params : dict
4034
+ Extra arguments for model.
4035
+ bvals_to_use : list[int]
4036
+ Subset of b-values to include.
4037
+ num_threads : int
4038
+ Number of threads to use.
4039
+ verbose : bool
4040
+ Whether to print status.
4041
+
4042
+ Returns
4043
+ -------
4044
+ FA_img : ants.ANTsImage
4045
+ Fractional anisotropy.
4046
+ MD_img : ants.ANTsImage
4047
+ Mean diffusivity.
4048
+ RGB_img : ants.ANTsImage
4049
+ RGB FA image.
4050
+ """
4051
+ import numpy as np
4052
+ import ants
4053
+ import dipy.reconst.dti as dti
4054
+ from dipy.core.gradients import gradient_table
4055
+ from dipy.reconst.dti import fractional_anisotropy, color_fa, mean_diffusivity
4056
+ from concurrent.futures import ThreadPoolExecutor
4057
+ from tqdm import tqdm
4058
+
4059
+ model_params = model_params or {}
4060
+ img = imagein.numpy()
4061
+ mask = maskin.numpy().astype(bool)
4062
+ X, Y, Z, N = img.shape
4063
+
4064
+ if bvals_to_use is not None:
4065
+ sel = np.isin(bvals, bvals_to_use)
4066
+ img = img[..., sel]
4067
+ bvals = bvals[sel]
4068
+ bvecs_5d = bvecs_5d[..., sel, :]
4069
+
4070
+ FA = np.zeros((X, Y, Z), dtype=np.float32)
4071
+ MD = np.zeros((X, Y, Z), dtype=np.float32)
4072
+ RGB = np.zeros((X, Y, Z, 3), dtype=np.float32)
4073
+
4074
+ def fit_voxel(ix, iy, iz):
4075
+ if not mask[ix, iy, iz]:
4076
+ return
4077
+ sig = img[ix, iy, iz, :]
4078
+ if np.all(sig == 0):
4079
+ return
4080
+ bv = bvecs_5d[ix, iy, iz, :, :]
4081
+ gtab = gradient_table(bvals, bv)
4082
+ try:
4083
+ model = dti.TensorModel(gtab, **model_params)
4084
+ fit = model.fit(sig)
4085
+ evals = fit.evals
4086
+ evecs = fit.evecs
4087
+ FA[ix, iy, iz] = fractional_anisotropy(evals)
4088
+ MD[ix, iy, iz] = mean_diffusivity(evals)
4089
+ RGB[ix, iy, iz, :] = color_fa(FA[ix, iy, iz], evecs)
4090
+ except Exception as e:
4091
+ if verbose:
4092
+ print(f"Voxel ({ix},{iy},{iz}) fit failed: {e}")
4093
+
4094
+ coords = np.argwhere(mask)
4095
+ if verbose:
4096
+ print(f"[INFO] Fitting {len(coords)} voxels using {num_threads} threads...")
4097
+
4098
+ if num_threads > 1:
4099
+ with ThreadPoolExecutor(max_workers=num_threads) as executor:
4100
+ list(tqdm(executor.map(lambda c: fit_voxel(*c), coords), total=len(coords)))
4101
+ else:
4102
+ for c in tqdm(coords):
4103
+ fit_voxel(*c)
4104
+
4105
+ ref = ants.slice_image(imagein, axis=3, idx=0)
4106
+ return (
4107
+ ants.copy_image_info(ref, ants.from_numpy(FA)),
4108
+ ants.copy_image_info(ref, ants.from_numpy(MD)),
4109
+ ants.merge_channels([ants.copy_image_info(ref, ants.from_numpy(RGB[..., i])) for i in range(3)])
4110
+ )
4111
+
4112
+
4113
+ def generate_voxelwise_bvecs(global_bvecs, voxel_rotations, transpose=False):
4114
+ """
4115
+ Generate voxel-wise b-vectors from a global bvec and voxel-wise rotation field.
4116
+
4117
+ Parameters
4118
+ ----------
4119
+ global_bvecs : ndarray of shape (N, 3)
4120
+ Global diffusion gradient directions.
4121
+ voxel_rotations : ndarray of shape (X, Y, Z, 3, 3)
4122
+ 3x3 rotation matrix for each voxel (can come from Jacobian of deformation field).
4123
+ transpose : bool, optional
4124
+ If True, transpose the rotation matrices before applying them to the b-vectors.
4125
+
4126
+
4127
+ Returns
4128
+ -------
4129
+ bvecs_5d : ndarray of shape (X, Y, Z, N, 3)
4130
+ Voxel-specific b-vectors.
4131
+ """
4132
+ X, Y, Z, _, _ = voxel_rotations.shape
4133
+ N = global_bvecs.shape[0]
4134
+ bvecs_5d = np.zeros((X, Y, Z, N, 3), dtype=np.float32)
4135
+
4136
+ for n in range(N):
4137
+ bvec = global_bvecs[n]
4138
+ for i in range(X):
4139
+ for j in range(Y):
4140
+ for k in range(Z):
4141
+ R = voxel_rotations[i, j, k]
4142
+ if transpose:
4143
+ R = R.T # Use transpose if needed
4144
+ bvecs_5d[i, j, k, n, :] = R @ bvec
4145
+ return bvecs_5d
4146
+
3935
4147
  def dipy_dti_recon(
3936
4148
  image,
3937
4149
  bvalsfn,
@@ -7434,7 +7646,7 @@ def mm(
7434
7646
  if do_kk:
7435
7647
  if verbose:
7436
7648
  print('kk')
7437
- output_dict['kk'] = antspyt1w.kelly_kapowski_thickness( hier['brain_n4_dnz'],
7649
+ output_dict['kk'] = antspyt1w.kelly_kapowski_thickness( t1atropos,
7438
7650
  labels=hier['dkt_parc']['dkt_cortex'], iterations=45 )
7439
7651
  if perfusion_image is not None:
7440
7652
  if perfusion_image.shape[3] > 1: # FIXME - better heuristic?
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: antspymm
3
- Version: 1.5.4
3
+ Version: 1.5.6
4
4
  Summary: multi-channel/time-series medical image processing with antspyx
5
5
  Author-email: "Avants, Gosselin, Tustison, Reardon" <stnava@gmail.com>
6
6
  License: Apache-2.0
@@ -9,20 +9,18 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.9
11
11
  Description-Content-Type: text/markdown
12
- License-File: LICENSE
13
12
  Requires-Dist: h5py>=2.10.0
14
13
  Requires-Dist: numpy>=1.19.4
15
14
  Requires-Dist: pandas>=1.0.1
16
15
  Requires-Dist: antspyx>=0.4.2
17
- Requires-Dist: antspynet>=0.2.8
18
- Requires-Dist: antspyt1w>=0.9.3
16
+ Requires-Dist: antspynet>=0.2.9
17
+ Requires-Dist: antspyt1w>=0.9.8
19
18
  Requires-Dist: pathlib
20
19
  Requires-Dist: dipy
21
20
  Requires-Dist: nibabel
22
21
  Requires-Dist: scipy
23
22
  Requires-Dist: siq
24
23
  Requires-Dist: scikit-learn
25
- Dynamic: license-file
26
24
 
27
25
  # ANTsPyMM
28
26
 
@@ -0,0 +1,6 @@
1
+ antspymm/__init__.py,sha256=50wAFf04ZlF7wYg1h07dFLKebGOGFwKCJfAcdyHhSXw,4858
2
+ antspymm/mm.py,sha256=mtkFJi0ZwLFw32vCrBdZcGa4ITgIOSn_Vfwq1SXLdqE,543752
3
+ antspymm-1.5.6.dist-info/METADATA,sha256=0H4Olfd04VZNR56ErUfVd0hEo8DppIsDrWWbks0JgHs,26007
4
+ antspymm-1.5.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ antspymm-1.5.6.dist-info/top_level.txt,sha256=iyD1sRhCKzfwKRJLq5ZUeV9xsv1cGQl8Ejp6QwXM1Zg,9
6
+ antspymm-1.5.6.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- antspymm/__init__.py,sha256=hynrdvZDlPQ0Wam8tU6mBtbEk0Worwz_bLZk9N7N1CM,4684
2
- antspymm/mm.py,sha256=e4BTBarPnlk3RlqMAPOp6wcGZxv5ufSA1GxuKi3oiJw,536471
3
- antspymm-1.5.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
- antspymm-1.5.4.dist-info/METADATA,sha256=2NNkAHHTSMIhla6KURkKU39w9CqxWrDshuHzOI2kMdc,26051
5
- antspymm-1.5.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- antspymm-1.5.4.dist-info/top_level.txt,sha256=iyD1sRhCKzfwKRJLq5ZUeV9xsv1cGQl8Ejp6QwXM1Zg,9
7
- antspymm-1.5.4.dist-info/RECORD,,
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.