Skip to content

Commit 0a3df34

Browse files
Fix error message formatting args being the wrong way around
1 parent 9ed2890 commit 0a3df34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blacs/output_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, hardware_name, connection_name, device_name, program_function
6767
elif not isinstance(calib_params, dict):
6868
reason = 'The parameters for the unit conversion class are not a dictionary. Check your connection table code for errors and recompile it'
6969
elif cls.base_unit != default_units:
70-
reason = f'The base unit of your unit conversion class does not match this hardware channel. The hardware channel has base units {cls.base_unit} while your unit conversion class uses {default_units}'
70+
reason = f'The base unit of your unit conversion class does not match this hardware channel. The hardware channel has base units {default_units} while your unit conversion class uses {cls.base_unit}'
7171
self._logger.error('The unit conversion class (%s) could not be loaded. Reason: %s'%(calib_class,reason))
7272
# Use default units
7373
self._calibration = None

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy