Skip to content

Enhance/description of dict fields#26

Merged
Zetison merged 2 commits intomainfrom
enhance/description_of_dict_fields
Aug 11, 2025
Merged

Enhance/description of dict fields#26
Zetison merged 2 commits intomainfrom
enhance/description_of_dict_fields

Conversation

@Zetison
Copy link
Copy Markdown
Collaborator

@Zetison Zetison commented Aug 11, 2025

Enhance the descriptive names for nodes having dictionaries with keys of type Resource as in the MultipleBuildingTypes-node in the EnergyModelsLanguageInterfaces.jl. Testing this functionality should be added once the package is registered.

Also cleaned up some code.

Jon Vegard Venås added 2 commits August 8, 2025 11:07
…require description of the super-field (and set the resource in parantheses)
@Zetison Zetison requested a review from JulStraus August 11, 2025 10:35
@Zetison Zetison self-assigned this Aug 11, 2025
@Zetison Zetison added the enhancement New feature or request label Aug 11, 2025
Copy link
Copy Markdown
Member

@JulStraus JulStraus left a comment

Choose a reason for hiding this comment

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

Seems workable although it is not tested. My comment is essentially just for considering smoother approaches. It does not change the picture at all.

# Search through EMX packages if icons are available there
for package ∈ emx_packages
package_path::Union{String,Nothing} = Base.find_package(package)
package_path::Union{String,Nothing} = dirname(dirname(Base.find_package(package)))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The dirname(dirname()) approach seems a bit heavy, although it is pretty much the same as before. I know that pkgdir is directly providing the root folder, but it is only working on the module which we do not get here.

Note that this is just a comment.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, there was occations where the previous approach did not work. One could have used the abspath-function, but I thought this was better.

@Zetison Zetison merged commit 7fcc5fc into main Aug 11, 2025
3 checks passed
@Zetison Zetison deleted the enhance/description_of_dict_fields branch August 11, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants