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

New plots are missing in report #66

Closed
3 tasks
jnnr opened this issue Sep 22, 2021 · 2 comments · Fixed by #138
Closed
3 tasks

New plots are missing in report #66

jnnr opened this issue Sep 22, 2021 · 2 comments · Fixed by #138
Assignees
Milestone

Comments

@jnnr
Copy link
Collaborator

jnnr commented Sep 22, 2021

To report scenarios with all represented sectors, include these:

  • heat dispatch
  • scalar plot of capacities
  • scalar plot of energy production
@jnnr jnnr added this to the v0.01 milestone Jan 13, 2022
@jnnr
Copy link
Collaborator Author

jnnr commented Jan 27, 2022

There is a problem: When we include new plots in report/report.md and they are produced only in some scenarios, those scenarios where they are missing (reduced scenarios without heat, e.g.), will fail to build a report.

Tried to set up a pandoc lua filter - a function that checks if a resource exists which replaces the part in the template with the caption if it does not find it. But it does not work (yet?):

function Image(el)
    local path = pandoc.utils.stringify(PANDOC_STATE.resource_path) .. el.src
    local r = io.open(path, 'rb')
    if r then
        return el
    else
        return el.caption
    end
end

@jnnr jnnr mentioned this issue Feb 10, 2022
3 tasks
@henhuy
Copy link
Collaborator

henhuy commented Feb 16, 2022

You were almost there @jnnr ...
There was a leading "." in path. after removing, pandoc replaces missing images with caption.

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 a pull request may close this issue.

2 participants