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

Inactive tech/commodity in Output Tab - Graphviz #18

Open
spkanung opened this issue Nov 8, 2016 · 6 comments
Open

Inactive tech/commodity in Output Tab - Graphviz #18

spkanung opened this issue Nov 8, 2016 · 6 comments
Assignees

Comments

@spkanung
Copy link
Contributor

spkanung commented Nov 8, 2016

Regarding handling of inactive tech/comm, I need Yash's help. Yash, I defined the right path to commodities and technologies subgraph svg files in the variable name 'imagepath' inside views.py.
However if for these subgraphs, the svg file cannot be found, is it possible to display an error message saying - 'The selected process was not active during this time period'? Not finding the correct corresponding svg file means that the tech/comm is simply not used/not active.

@spkanung spkanung changed the title ? Inactive tech/commodity in Output Tab - Graphviz Nov 8, 2016
@codeyash
Copy link
Collaborator

codeyash commented Nov 8, 2016

We can handle it easily. We have to use python file exist function. If not found we have use default svg file.
We need to create a default svg when svg image not found.
Like No data found

@spkanung
Copy link
Contributor Author

spkanung commented Nov 8, 2016

It'll take me some time to provide you with that image saying - 'The selected process was not active during this time period'. Hopefully we can keep this svg file in a common fixed location.

@codeyash
Copy link
Collaborator

codeyash commented Nov 8, 2016

I can create one and update the code or you want to take the ownership?

@spkanung
Copy link
Contributor Author

spkanung commented Nov 8, 2016

Can you update the code? I don't want to risk breaking anything unless it is a temoa code. I can provide you with svg image unless you can do easily. I need to read through it a little bit.

@codeyash
Copy link
Collaborator

codeyash commented Nov 8, 2016

I can do it. or you can use any online image creation tool :)

@spkanung
Copy link
Contributor Author

spkanung commented Nov 8, 2016

Okay if you can do it then it's really helpful. :)
I'll concentrate to finish issue#20, which is big in itself.

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

No branches or pull requests

2 participants