File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments