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)
- Viewer only renders 1 zone in 3 zone model HOT 4
- Provide a way to save and reload `EplusJob` and `EplusGroupJob`
- Document of the `IdfGeometry$coord_system()` isn't correct
- `IdfGeometry$coord_system()` did not work
- `IdfViewer$snapshot()` did not work for PNG output
- `Idf$load()` did not work with single string with no line break
- `$<-.IdfObject` did not work for `ScheduleCompact` object
- File encoding issue for `Idf$save()` HOT 1
- Add support for EnergyPlus v22.1.0
- Enable to use functions to modify fields in `Idf$set()`
- Update weather database based on the updates from OneBuilding
- `read_epw()` should respect `validate_level` option
- Failed to extract EPW data if the data of Feb. 28 is from a leap year HOT 1
- Plotting meter data HOT 2
- [CRAN] CRAN check NOTEs on HTML version of manual
- Release eplusr 0.15.2
- CRAN NOTE on duplicated `\item` entries in doc
- Add support for EnergyPlus v22.2.0
- Failed to parse EPW date due to an update of lubridate
- Consider to use stringi for date time manipulation HOT 1
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.