Skip to content

Commit 5dd1f50

Browse files
rename to environment
1 parent 4df9369 commit 5dd1f50

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/pyhf/cli/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ def cli():
2121
help="The location of the output file. If not specified, prints to screen.",
2222
default=None,
2323
)
24-
def debug(output_file):
25-
debug_info = utils.debug_info()
24+
def environment(output_file):
25+
environment_info = utils.environment_info()
2626

2727
if output_file:
2828
output_file = Path(output_file)
2929
output_file.parent.mkdir(parents=True, exist_ok=True)
3030

3131
with open(output_file, "w+", encoding="utf-8") as out_file:
32-
out_file.write(debug_info)
33-
log.debug(f"Written to {output_file}")
32+
out_file.write(environment_info)
33+
log.environment(f"Written to {output_file}")
3434
else:
35-
click.echo(debug_info)
35+
click.echo(environment_info)

src/pyhf/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
__all__ = [
2020
"EqDelimStringParamType",
2121
"citation",
22-
"debug_info",
22+
"environment_info",
2323
"digest",
2424
"options_from_eqdelimstring",
2525
]
@@ -132,14 +132,14 @@ def citation(oneline=False):
132132
return data
133133

134134

135-
def debug_info():
135+
def environment_info():
136136
"""
137137
Produce OS / environment information useful for filing a bug report
138138
139139
Example:
140140
141141
>>> import pyhf
142-
>>> pyhf.utils.debug_info()
142+
>>> pyhf.utils.environment_info()
143143
144144
Returns:
145145
os_info (:obj:`str`): The operating system and environment information

0 commit comments

Comments
 (0)