d2fac82b91d24d62956d632597cc373492ded456,starry/Map/pymap.py,PythonMapBase,render,#PythonMapBase#Any#Any#Any#Any#,18
Before Change
model_kwargs["source"] = source
// Compute the northern hemisphere map
self.axis = [1e-10, 1e-10, 1] // TODO: Bug when axis = [0, 0, 1]
Z_north = np.array(self.intensity(x=x, y=y, **model_kwargs))
if self._spectral:
Z_north = Z_north.reshape(res // 2, res, self.nw)
After Change
// Rotate so we"re looking down the north pole
map_axis = np.array(self.axis)
alpha = np.arccos(np.dot(map_axis, [0, 0, 1])) * 180 / np.pi
u = np.cross(map_axis, [0, 0, 1])
self.axis = u
self.rotate(alpha)
// We need to rotate the light source as well
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: rodluger/starry
Commit Name: d2fac82b91d24d62956d632597cc373492ded456
Time: 2019-04-20
Author: rodluger@gmail.com
File Name: starry/Map/pymap.py
Class Name: PythonMapBase
Method Name: render
Project Name: geomstats/geomstats
Commit Name: 3cc9e1cfd039c5986c9ab4e1dfe3fa2d627a7d0a
Time: 2018-02-02
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: skew_matrix_from_vector
Project Name: geomstats/geomstats
Commit Name: fb9275731bbc0bea7beb59e0d83c662537c27b8c
Time: 2018-01-31
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: skew_matrix_from_vector