Skip to content

Commit

Permalink
Ipython startup now adds registry to ipython namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
yannachen committed Mar 26, 2024
1 parent cdd18a9 commit 74393ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ipython_startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

logging.basicConfig(level=logging.WARNING)


# Allow best effort callback to update properly
plt.ion()

Expand All @@ -24,6 +25,9 @@
haven.load_instrument()
print(f"Finished initalization in {time.monotonic() - t0:.2f} seconds.")
RE = haven.run_engine()

# Save references to some commonly used things in the global namespace
registry = haven.registry
ion_chambers = haven.registry.findall("ion_chambers")

# Add metadata to the run engine
Expand Down
3 changes: 0 additions & 3 deletions src/haven/instrument/power_supply.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ def load_power_supply_coros(config=None):
config = load_config()
# Determine if any power supplies are available
ps_configs = config.get("power_supply", {})
from pprint import pprint

pprint(ps_configs)
for name, ps_config in ps_configs.items():
# Do it once for each channel
for ch_num in range(1, ps_config["n_channels"] + 1):
Expand Down

0 comments on commit 74393ce

Please sign in to comment.