Skip to content

Commit e48fcd1

Browse files
committed
better var names
1 parent d995043 commit e48fcd1

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

pyphare/pyphare/cpp/__init__.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def cpp_lib(override=None):
2222
return importlib.import_module("pybindlibs.cpp")
2323
try:
2424
return importlib.import_module("pybindlibs.cpp_dbg")
25-
except ImportError as err:
25+
except ImportError:
2626
return importlib.import_module("pybindlibs.cpp")
2727

2828

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

4242

4343
def print_env_vars_info():
44-
for k, v in cpp_etc_lib().phare_env_vars().items():
45-
print(f"{k}: {v.desc}")
44+
# see: src/core/env.hpp
45+
for env_var_name, env_var in cpp_etc_lib().phare_env_vars().items():
46+
print(f"{env_var_name}: {env_var.desc}")
4647
print("Options:")
47-
for k, v in v.options:
48-
print(f" {k}: {v}")
48+
for option_key, option_val in env_var.options:
49+
print(f" {option_key}: {option_val}")
4950
print("")
5051

5152

src/hdf5/detail/h5/h5_file.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ class HighFiveFile
6969

7070
~HighFiveFile() {}
7171

72-
NO_DISCARD HiFile& file() { return h5file_; }
72+
NO_DISCARD HiFile& file()
73+
{
74+
return h5file_;
75+
}
7376

7477

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

0 commit comments

Comments
 (0)