-
Notifications
You must be signed in to change notification settings - Fork 20
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
796 always return #953
base: main
Are you sure you want to change the base?
796 always return #953
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,6 +198,7 @@ We will try to follow these during development and reviews. | |
- List obvious objects, e.g., `using JuMP: @variable`, since `@variable` is obviously from JuMP in this context, or `using Graph: SimpleDiGraph`, because it's a constructor with an obvious name. | ||
- For other objects inside `Package`, use `using Package: Package` and explicitly call `Package.A` to use it, e.g., `DataFrames.groupby`. | ||
- List all `using` in <src/TulipaEnergyModel.jl>. | ||
- Explicitly state what a function will `return`, including `return nothing`. | ||
|
||
## Contributing Workflow | ||
|
||
|
@@ -441,8 +442,7 @@ See the file <benchmark/profiling.jl> for an example of profiling code. | |
When publishing a new version of the model to the Julia Registry, follow this procedure: | ||
|
||
> **Note:** | ||
> To be able to register, you need to be a member of the organisation TulipaEnergy and have your visibility set to public:<br> | ||
> ![Screenshot of public members of TulipaEnergy on GitHub](./images/PublicMember.png) | ||
> To be able to register, you need to be a member of the organisation TulipaEnergy and have your visibility set to public:<br> > ![Screenshot of public members of TulipaEnergy on GitHub](./images/PublicMember.png) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure why this changed. |
||
|
||
1. Click on the `Project.toml` file on GitHub. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ function add_consumer_constraints!(model, constraints, graph, sets) | |
|
||
# - Balance constraint (using the lowest temporal resolution) | ||
df = filter(:asset => ∈(Ac), constraints[:highest_in_out].indices; view = true) | ||
model[:consumer_balance] = [ | ||
return model[:consumer_balance] = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if this is correct or these should all be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The JuliaFormatter is technically correct, because these were indeed being returned implicitly. But we don't expect any return, so adding an empty |
||
@constraint( | ||
model, | ||
incoming_flow_highest_in_out_resolution[row.index] - | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.