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

Namespace ies #2621

Merged
merged 6 commits into from
Jan 12, 2022
Merged

Namespace ies #2621

merged 6 commits into from
Jan 12, 2022

Conversation

joakim-hove
Copy link
Contributor

@joakim-hove joakim-hove commented Dec 20, 2021

Introduce namespace ies::

Have opted to ies:: explicitly in the implementation, instead of enclosing implementation files in namespace ies { ... } - that is to avoid "visual name confusion".

@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2021

Codecov Report

Merging #2621 (0dd98aa) into main (4fb977e) will increase coverage by 4.09%.
The diff coverage is 68.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2621      +/-   ##
==========================================
+ Coverage   60.95%   65.05%   +4.09%     
==========================================
  Files         339      651     +312     
  Lines       36582    53908   +17326     
  Branches     4540     4610      +70     
==========================================
+ Hits        22300    35069   +12769     
- Misses      12827    17358    +4531     
- Partials     1455     1481      +26     
Impacted Files Coverage Δ
libres/lib/analysis/analysis_module.cpp 45.81% <0.00%> (ø)
libres/lib/analysis/ies/ies.cpp 56.36% <53.98%> (ø)
libres/lib/analysis/ies/ies_data.cpp 83.70% <82.05%> (ø)
libres/lib/analysis/ies/ies_config.cpp 90.00% <92.30%> (ø)
libres/lib/analysis/std_enkf.cpp 63.69% <92.85%> (ø)
libres/lib/res_util/block_fs.cpp 53.23% <0.00%> (ø)
libres/lib/include/ert/python.hpp
ert_gui/plottery/plot_style.py 97.75% <0.00%> (ø)
ert3/console/_status.py 100.00% <0.00%> (ø)
ert_gui/model/snapshot.py 86.23% <0.00%> (ø)
... and 332 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fb977e...0dd98aa. Read the comment docs.

@joakim-hove joakim-hove force-pushed the namespace-ies branch 2 times, most recently from 71b0366 to 1cd1c8b Compare January 4, 2022 16:22
@joakim-hove
Copy link
Contributor Author

Ready for review from my side

@joakim-hove joakim-hove force-pushed the namespace-ies branch 2 times, most recently from 08665bc to 697602a Compare January 5, 2022 09:20
ies_enkf_config_type *config = ies_enkf_data_get_config(module_data);
namespace {

bool set_int(void *arg, const char *var_name, int value) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be a stupid question, but why are these not in the ies namespace

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are private - accessed through the functions pointers in struct analysis_table_type.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha!

Copy link
Collaborator

@oyvindeide oyvindeide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, looks like a good improvement! Some small comments, but the nature of the subject means most of them are opinionated. I think it could befit for a further splitting up though, in the way of a nested namespace, as the remaining function names often point to that I feel.

libres/lib/analysis/ies/ies_enkf.cpp Outdated Show resolved Hide resolved
libres/lib/analysis/ies/ies_enkf_data.cpp Outdated Show resolved Hide resolved
libres/lib/include/ert/analysis/ies/ies_enkf_config.hpp Outdated Show resolved Hide resolved
@joakim-hove joakim-hove force-pushed the namespace-ies branch 3 times, most recently from c6988c8 to 0eba55c Compare January 6, 2022 14:36
@joakim-hove joakim-hove closed this Jan 6, 2022
@joakim-hove joakim-hove reopened this Jan 6, 2022
@joakim-hove joakim-hove closed this Jan 6, 2022
@joakim-hove joakim-hove reopened this Jan 6, 2022
@joakim-hove joakim-hove closed this Jan 7, 2022
@joakim-hove joakim-hove reopened this Jan 7, 2022
@joakim-hove
Copy link
Contributor Author

Hmmm - these failing equinor tests I do not have control over.

@joakim-hove
Copy link
Contributor Author

Can this be merged?

@joakim-hove
Copy link
Contributor Author

ModuleNotFoundError: No module named 'starlette.graphql'

@dafeda
Copy link
Contributor

dafeda commented Jan 10, 2022

ModuleNotFoundError: No module named 'starlette.graphql'

Seems like all PR's are getting this.
We're looking into it.

Copy link
Contributor

@pinkwah pinkwah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@joakim-hove joakim-hove reopened this Jan 11, 2022
@joakim-hove
Copy link
Contributor Author

test ert please

@joakim-hove joakim-hove reopened this Jan 11, 2022
@joakim-hove
Copy link
Contributor Author

How can I force a rerun of the Equinor tests?

@dafeda
Copy link
Contributor

dafeda commented Jan 11, 2022

test ert please

@joakim-hove joakim-hove enabled auto-merge (rebase) January 12, 2022 07:30
@joakim-hove joakim-hove mentioned this pull request Jan 12, 2022
@joakim-hove joakim-hove merged commit 1d3e102 into equinor:main Jan 12, 2022
@joakim-hove joakim-hove deleted the namespace-ies branch January 12, 2022 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants