-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resource allocation colormap (#3453)
* Update to DB qiita.slurm_resource_allocations * added colormap, create equation table * Fixed styling * Using qiita.allocation_equations table in util.py * Debug * Updates to @antgonza comments * Changes to @antgonza comments * Back to np.log
- Loading branch information
Showing
7 changed files
with
210 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Jan 13, 2025 | ||
-- Adding a table for formulas for resource allocations | ||
CREATE TABLE qiita.allocation_equations ( | ||
equation_id SERIAL PRIMARY KEY, | ||
equation_name TEXT NOT NULL, | ||
expression TEXT NOT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
INSERT INTO qiita.allocation_equations(equation_name, expression) | ||
VALUES | ||
('mem_model1', '(k * (np.log(x))) + (x * a) + b'), | ||
('mem_model2', '(k * (np.log(x))) + (b * ((np.log(x))**2)) + a'), | ||
('mem_model3', '(k * (np.log(x))) + (b * ((np.log(x))**2)) + (a * ((np.np.log(x))**3))'), | ||
('mem_model4', '(k * (np.log(x))) + (b * ((np.log(x))**2)) + (a * ((np.log(x))**2.5))'), | ||
('time_model1', 'a + b + ((np.log(x)) * k)'), | ||
('time_model2', 'a + (b * x) + ((np.log(x)) * k)'), | ||
('time_model3', 'a + (b * ((np.log(x))**2)) + ((np.log(x)) * k)'), | ||
('time_model4', '(a * ((np.log(x))**3)) + (b * ((np.log(x))**2)) + ((np.log(x)) * k)'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.