Comments (8)
How can I get the other successful running models' results?
Yes, you can specify which job(s) you would like to export data from.
For details, please see the documention of ParametricJob
.
elec0$report_data(which = c(1,3,5,6), name = "Electricity:Facility")
Or are there any way to export which pairs unsuccessful?
Currently, there is no method in ParametricJob
class to do this. I am considering to add a method to export detailed job info in ParametricJob
class in next release.
If you want to know which model and weather pairs failed to complete, you may manually extract the job data called m_job
stored in the private environment of the ParametricJob object using function eplusr:::._get_private()
:
eplusr:::._get_private(elec0)$m_job
Basically, m_job
is a data.table returned from run_multi()
which is called when running parametric models. You can find if the model is successfully simulated or not by the value of the exit_status
column.
So if you want to get the info for failed models, you can do:
m_job[exit_status != 0L]
However, this is not the recommended way. I would suggest to first check the .err
file for those bad models.
ele0$errors(c(2,4,7,8))
After knowing the problem, you can modify your measure accordingly.
from eplusr.
Thanks for your response!
I tested the suggestion you listed and decided to use:
eplusr:::._get_private(param)$m_job[exit_status != 0L]
to extract the unsuccessful runs.
But when I tried the
param$errors(c(2,4,7,8))
but it only showed:
Error: Some of jobs completed unsuccessfully:
2|UNSUCCESSFUL --> [IDF]set_parameters_2.idf
+ [EPW]IA_DES-MOINES-IAP_725460_10.epw
4|UNSUCCESSFUL --> [IDF]set_parameters_4.idf
+ [EPW]IA_DES-MOINES-IAP_725460_10.epw
7|UNSUCCESSFUL --> [IDF]set_parameters_7.idf
+ [EPW]IA_DES-MOINES-IAP_725460_10.epw
8|UNSUCCESSFUL --> [IDF]set_parameters_8.idf
+ [EPW]IA_DES-MOINES-IAP_725460_10.epw
I cannot see the details of errors.
from eplusr.
It turns out that if EnergyPlus returns a non-zero, it means that the simulation cannot even start. So thatβs why I decided to stop extracting any info from the err file when I designed the feature.
I would suggest to use elec0$output_dir(open=TRUE)
to open the output folder and check each err file to find out the real problem.
Please tell me if the err file explains the problem. If so, I will consider to continue to parse the err file even EnergyPlus ended unsuccessfully.
from eplusr.
Error in param$output_dir(open = TRUE) : unused argument (open = TRUE)
it shows this.
from eplusr.
Sorry, there should be no open
argument. Please try directly go to the output dir and check the err file of each model that failed to run.
from eplusr.
Yes, it shows the problem as the normal err files.
Thanks for your help.
from eplusr.
Thanks for this info!
Then this means that I should change the logic of determining when to stop parsing err files. I will work on that tomorrow.
Besides, I think currently ParametricJob class is not so friendly to use. Any suggestions for improving will be much appreciated.
from eplusr.
@yatingchen, please check out the develop version. Now $errors()
should work for unsuccessful jobs.
from eplusr.
Related Issues (20)
- Add support for EnergyPlus v23.1
- Use cli for verbose logging
- CI errors for Schedule Vignette
- Release eplusr 0.16.0
- Remove {hms} dependencies
- Release eplusr 0.16.1
- CRAN check error due to IDD parsing
- CRAN check errors HOT 1
- Use character input in `numeric_version()`
- Truncate messages for large parametric simulations
- Update Lincense info
- epw file loading error HOT 3
- CRAN checks error about non-character numeric version inputs
- EPW downloading error
- Add support for EnergyPlus 23.2.0
- Handle EnergyPlus download url more gracefully
- Add support for EnergyPlus v24.1.0
- Add support to install EnergyPlus locally on macOS HOT 1
- `unzip()` may fail on Windows when file paths are too long
- Add control for whether to run `ReadVarsESO` in `Idf$run()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eplusr.