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

Older version for basic_tutorial #380

Open
mbergmann1324 opened this issue Dec 8, 2022 · 2 comments
Open

Older version for basic_tutorial #380

mbergmann1324 opened this issue Dec 8, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mbergmann1324
Copy link

mbergmann1324 commented Dec 8, 2022

Could it be that the version for the basic_tutorial is outdated.
When running "campaign = uq.Campaign(name='beam', params=params, encoder=encoder, decoder=decoder)" I get an error when running on my cluster. I needed to use Actions provided to me by Wouter. Also using the Triangle function leads to an error.

The code that works for me/us:

execute = ExecuteLocal("{}/beam input.json".format(os.getcwd()))
 actions = Actions(CreateRunDirectory(root="/toks/work/mberg/astra7_IDA/python_scripts/", flatten=True), Encode(encoder), execute, Decode(decoder))
campaign = uq.Campaign(name="beam", params=params, actions=actions)
vary = {"F": cp.Normal(1, 0.1), "L": cp.Normal(1.5, 0.01), "a": cp.Uniform(0.7, 1.2)}  # , "D": cp.Triangle(0.75, 0.8, 0.85)}
campaign.set_sampler(uq.sampling.SCSampler(vary=vary, polynomial_order=3))
campaign.execute().collate(progress_bar=True)```
@djgroen
Copy link
Contributor

djgroen commented Dec 16, 2022

Edited original comment to show code in fixed font format.

@djgroen djgroen self-assigned this Dec 16, 2022
@djgroen djgroen added the bug Something isn't working label Dec 16, 2022
@djgroen
Copy link
Contributor

djgroen commented Jan 5, 2023

I just ran the basic tutorial on my local machine after updating EasyVVUQ to the latest version, and it seems to work properly for me. @wedeling could you perhaps see if you can reproduce this error?

If not, should we still update the tutorial to use this action coe?

@djgroen djgroen assigned wedeling and djgroen and unassigned djgroen Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants