Skip to content

Conversation

@kbevers
Copy link
Owner

@kbevers kbevers commented Jun 4, 2025

This affects a larger chunk of the code but is mainly a matter of extending coordinate vectors and matrices a bit and only selecting the spatial parts of the coordinates in most cases where operations are done on the coordinates. I bit more convoluted but essential.

Typing extending to include both CoordinateMatrix and Matrix, as well as CoordinateVector and Vector. Some matrices and vectors contain coordinates and can be expected to be either Nx4 or 4x1. Other matrices and vectors can be shaped arbitrarily.

In addition to adding support for the fourth dimension, it is now also possible to load source and target data that doesn't have the exact same stations. The intersection of the two sets of coordinates are found by using the station names as key. Consequently, the coordinate lists are now sorted by the station names as well. This ensures that coordinate pairs are placed in the same rows in the matrices used for computation.

kbevers and others added 2 commits June 3, 2025 22:15
This affects a larger chunk of the code but is mainly a matter of
extending coordinate vectors and matrices a bit and only selecting the
spatial parts of the coordinates in most cases where operations are done
on the coordinates. I bit more convoluted but essential.

Typing extending to include both CoordinateMatrix and Matrix, as well as
CoordinateVector and Vector. Some matrices and vectors contain
coordinates and can be expected to be either Nx4 or 4x1. Other matrices
and vectors can be shaped arbitrarily.
When processing a Pipeline DataSources are now modified so that they
only contain coordinates from the union of the source and target
stations.

When removing stations from DataSources the original ordering of the
data is comprimised. Hence Coordinate lists are sorted (in order of
stations) as a final step of DataSource instantiantion.
@kbevers kbevers marked this pull request as ready for review June 12, 2025 16:40
@kbevers kbevers merged commit 6677f1d into main Jun 12, 2025
2 checks passed
@kbevers kbevers deleted the 4d-coords branch June 12, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants