Skip to content

Commit

Permalink
better var names
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Jul 14, 2024
1 parent d995043 commit e48fcd1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 6 additions & 5 deletions pyphare/pyphare/cpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def cpp_lib(override=None):
return importlib.import_module("pybindlibs.cpp")
try:
return importlib.import_module("pybindlibs.cpp_dbg")
except ImportError as err:
except ImportError:
return importlib.import_module("pybindlibs.cpp")


Expand All @@ -41,11 +41,12 @@ def env_vars():


def print_env_vars_info():
for k, v in cpp_etc_lib().phare_env_vars().items():
print(f"{k}: {v.desc}")
# see: src/core/env.hpp
for env_var_name, env_var in cpp_etc_lib().phare_env_vars().items():
print(f"{env_var_name}: {env_var.desc}")
print("Options:")
for k, v in v.options:
print(f" {k}: {v}")
for option_key, option_val in env_var.options:
print(f" {option_key}: {option_val}")
print("")


Expand Down
5 changes: 4 additions & 1 deletion src/hdf5/detail/h5/h5_file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ class HighFiveFile

~HighFiveFile() {}

NO_DISCARD HiFile& file() { return h5file_; }
NO_DISCARD HiFile& file()
{
return h5file_;
}


template<typename T, std::size_t dim = 1>
Expand Down

0 comments on commit e48fcd1

Please sign in to comment.