Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix row/col order for none-square branching matrices #443

Merged
merged 1 commit into from
Mar 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/Agrammon/DataSource/DB.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class Agrammon::DataSource::DB does Agrammon::DB {
FROM data_new LEFT JOIN branches ON (data_id=branches_var)
WHERE data_dataset=dataset_name2id($1,$2)
AND data_var not like '%ignore'
ORDER BY data_instance, branches_data, data_var, data_val
-- order is important to get col/rows of branching right (see load/store branch data)
ORDER BY data_instance, branches_data, data_id, data_var, data_val
STATEMENT
my @rows = $results.arrays;
my $dist-input = Agrammon::Inputs::Distribution.new(
Expand Down