Giter VIP home page Giter VIP logo

Comments (8)

hongyuanjia avatar hongyuanjia commented on June 20, 2024

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.

yatingchen avatar yatingchen commented on June 20, 2024

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.

hongyuanjia avatar hongyuanjia commented on June 20, 2024

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.

yatingchen avatar yatingchen commented on June 20, 2024

Error in param$output_dir(open = TRUE) : unused argument (open = TRUE)

it shows this.

from eplusr.

hongyuanjia avatar hongyuanjia commented on June 20, 2024

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.

yatingchen avatar yatingchen commented on June 20, 2024

Yes, it shows the problem as the normal err files.

Thanks for your help.

from eplusr.

hongyuanjia avatar hongyuanjia commented on June 20, 2024

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.

hongyuanjia avatar hongyuanjia commented on June 20, 2024

@yatingchen, please check out the develop version. Now $errors() should work for unsuccessful jobs.

from eplusr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.