Skip to content

Commit 69bb763

Browse files
committed
explain why we need reload
1 parent f27b4d1 commit 69bb763

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@
3333
# rather than `__init__` that is unhelpful
3434
# for instruments. When building the docs
3535
# we patch it back to ABCMeta
36+
# this should happen as early as possible
3637
import qcodes.instrument.instrument_meta
3738

3839
qcodes.instrument.instrument_meta.InstrumentMeta = ABCMeta
40+
# we need to reload any module that has been imported and
41+
# makes use of this metaclass. The modules below are all imported
42+
# by importing qcodes.instrument so we need to reload them
3943
reload(qcodes.instrument.instrument)
4044
reload(qcodes.instrument.ip)
4145
reload(qcodes.instrument.visa)

0 commit comments

Comments
 (0)