Skip to content

-j flag to y#98

Open
mduncans wants to merge 4 commits intomainfrom
sge-tmpl-fix
Open

-j flag to y#98
mduncans wants to merge 4 commits intomainfrom
sge-tmpl-fix

Conversation

@mduncans
Copy link
Collaborator

@mduncans mduncans commented Mar 3, 2026

No description provided.

@mduncans mduncans requested review from Keats and dpastoor March 4, 2026 18:50
suffix.split('_').collect()
};

Some((version_number, suffix_parts))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add some docstring to explain what the suffixes are? I can see it from the tests but it would be nice to be in the docs

match (parse_nonmem_version_name(a), parse_nonmem_version_name(b)) {
(Some((a_num, a_suffix)), Some((b_num, b_suffix))) => b_num
.cmp(&a_num)
.then_with(|| a_suffix.cmp(&b_suffix))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to compare anything other than version number? If you have nm73 and nm73gf they are not the same? what does the ordering mean there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think you're right we can just ignore the suffix entirely. parse the version number then lexical for ties. The suffixes just denoted how the fortran was compiled.

job_id_str
.parse()
.map_err(|e| anyhow!("Failed to parse job ID '{job_id_str}': {e}"))?
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this block needs some comment

@mduncans mduncans requested review from Keats and removed request for dpastoor March 4, 2026 21:22
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