agabrown / pygaia Goto Github PK
View Code? Open in Web Editor NEWGaia science performance simulation toolkit
Home Page: https://pygaia.readthedocs.io/en/latest
License: BSD 3-Clause "New" or "Revised" License
Gaia science performance simulation toolkit
Home Page: https://pygaia.readthedocs.io/en/latest
License: BSD 3-Clause "New" or "Revised" License
vx = jnp.zeros_like(parallax)
vy = jnp.zeros_like(parallax)
vz = jnp.zeros_like(parallax)
for i in range(parallax.size):
velocityArray = np.dot(
jnp.transpose(np.array([p[:, i], q[:, i], r[:, i]])),
transverseMotionArray[:, i],
)
vx[i] = velocityArray[0]
vy[i] = velocityArray[1]
vz[i] = velocityArray[2]
You can remove the for-loop for the following einsum
, equivalent
velocityArray = np.einsum(
'kij,ji->ki', np.stack((p, q, r), axis=-1),
transverseMotionArray)
vx = velocityArray[0]
vy = velocityArray[1]
vz = velocityArray[2]
Add use of astropy units to pygaia. Check performance changes.
Inconsistency between doc and code: the band's name is case-sensitive.
PyGaia/src/pygaia/errors/photometric.py
Line 180 in 90f0526
PyGaia/src/pygaia/errors/photometric.py
Line 196 in 90f0526
You could force the lower case to help
f"logU_{_nobs_drs_bands[release][band]}"
f"logU_{_nobs_drs_bands[release.lower()][band.lower()]}"
Some of the links in the Readme are broken, e.g. the link to https://github.com/agabrown/PyGaia/blob/master/pygaia/astrometry/coordinates.py
This probably stems from reorganising the package structure with a /src folder, since e.g. this link works:
https://github.com/agabrown/PyGaia/blob/master/src/pygaia/astrometry/coordinates.py
Currently functions such as transform_cartesian_coordinates accept as input one array for each of the Cartesian components of the vector. It would be useful to also allow for input of arrays in which each row is a vector to be manipulated.
Hi Anthony,
Cartopy is being difficult. It requires libraries that are not always installable as a user. (geos dev library)
Can we make the pieces relying on this package an optional part of PyGaia?
Line 4 in 90f0526
ujson, cartopy are missing from the project requirements.
The epoch propagation functions should handle non-available radial velocities for the user, by setting them to zero.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.