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

january cleanup #24

Merged
merged 14 commits into from
Jan 5, 2024
Merged

january cleanup #24

merged 14 commits into from
Jan 5, 2024

Conversation

exaexa
Copy link
Member

@exaexa exaexa commented Jan 2, 2024

No description provided.

Still a verb, but we've got substitute() already and going nouny there would be
hard.

Closes #21
@exaexa exaexa self-assigned this Jan 2, 2024
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dffa0b6) 100.00% compared to head (6cbf9e8) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          202       219   +17     
=========================================
+ Hits           202       219   +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stelmo
Copy link
Member

stelmo commented Jan 2, 2024

this is great! Gonna remove about 200 LoC from DiffMet :)

I'm not sure about the run-time overhead here but I think it might actually
simplify the stuff a lot. Certainly removed a lot of type stress. Tests got
faster by around 10% here.

Closes #17
@exaexa exaexa requested a review from stelmo January 3, 2024 13:35
@exaexa
Copy link
Member Author

exaexa commented Jan 3, 2024

The remaining issue for 1.0 is the #22 which will need a bit of support from DataStructures. I might make a temporary (slower) version too, will see. I think this is ready now tho.

Copy link
Member

@stelmo stelmo left a comment

Choose a reason for hiding this comment

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

great!

src/linear_value.jl Show resolved Hide resolved
src/quadratic_value.jl Show resolved Hide resolved
src/tree.jl Outdated Show resolved Hide resolved
@exaexa
Copy link
Member Author

exaexa commented Jan 3, 2024

ok well actually let's add at least a primitive version of the tree_zip... :D

docs/src/1-metabolic-modeling.jl Show resolved Hide resolved
Comment on lines +227 to +233
function variables_for(makebound, ts::Tree)
var_idx = 0
map(ts, Constraint) do x
var_idx += 1
variable(idx = var_idx, bound = makebound(x))
end
end
Copy link
Member

Choose a reason for hiding this comment

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

where is this used?

Copy link
Member

Choose a reason for hiding this comment

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

i.e. when would I want to use it?

Copy link
Member Author

Choose a reason for hiding this comment

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

src/tree.jl Show resolved Hide resolved
@exaexa exaexa merged commit 39cadd5 into master Jan 5, 2024
5 checks passed
@exaexa exaexa deleted the mk-january-cleanup branch June 6, 2024 07:27
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