Skip to content

Commit

Permalink
[Importer] Run xl2times as a top-level script
Browse files Browse the repository at this point in the history
  • Loading branch information
rschuchmann committed Apr 15, 2024
1 parent 4818491 commit d62e08a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ In order to use the TIMES MIRO app locally you need
To be able to import TIMES model Excel input files in MIRO, [python](https://www.python.org/) and the python package
[xl2times](https://github.com/etsap-TIMES/xl2times) are required. The Excel input format accepted by this tool is documented
in the [TIMES Model Documentation PART IV](https://iea-etsap.org/docs/Documentation_for_the_TIMES_Model-Part-IV.pdf). Make
sure that python can be found by putting it in the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable.
sure that python and the tool can be found by putting it in the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable.

# Example Application with Customized Visualizations
If the TIMES MIRO application is used without further ado, the output section shows all model results in a powerful pivot table
Expand Down
3 changes: 1 addition & 2 deletions app_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Click on `Load` to start the data import. As soon as this is finished, MIRO will
To be able to import Excel input files, [python](https://www.python.org/) and the python package
[xl2times](https://github.com/etsap-TIMES/xl2times) are required. The Excel input format accepted by this tool is documented
in the [TIMES Model Documentation PART IV](https://iea-etsap.org/docs/Documentation_for_the_TIMES_Model-Part-IV.pdf). Make
sure that python can be found by putting it in the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable.
sure that python and the tool can be found by putting it in the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable.

---

Expand Down Expand Up @@ -194,7 +194,6 @@ In the `split view` comparison the data of two scenarios can be compared side by

Once the configuration for the four optional renderers (see above) has been completed, the dashboard and the data explorer tab can also be used in a custom scenario comparison module without much additional effort.

`Dashboard compare`,
<picture>
<source srcset="static_times_miro/dashboard_compare_dark.png" media="(prefers-color-scheme: dark)">
<img style="min-width: 850px;max-width: 1200px;width: 100%;" src="static_times_miro/dashboard_compare.png">
Expand Down
7 changes: 3 additions & 4 deletions renderer_times_miro/miroimport.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ miroimport_times <- function(symbolNames,
tryCatch(
{
xl2times <- processx::run(
command = "python",
command = "xl2times",
args = c(
"-m",
"xl2times",
file.path(tempDir, xlsxFiles),
"--output_dir", ddFilesDir,
"--dd"
"--dd",
"--no_cache"
),
error_on_status = FALSE,
wd = tempDir,
Expand Down

0 comments on commit d62e08a

Please sign in to comment.