Skip to content
Snippets Groups Projects
Commit bb17d3e3 authored by Valentin Bruch's avatar Valentin Bruch
Browse files

bug fixes in plots and data management

parent 7a33b3fe
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,6 @@ import argparse ...@@ -13,8 +13,6 @@ import argparse
import os import os
import settings import settings
import numpy as np import numpy as np
import sys
import inspect
def gen_option_iter(options, verbose=False): def gen_option_iter(options, verbose=False):
... ...
......
...@@ -183,11 +183,11 @@ def plot_comparison_relative(dm, omega, **trashoptions): ...@@ -183,11 +183,11 @@ def plot_comparison_relative(dm, omega, **trashoptions):
def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6): def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6):
fig, axes = plt.subplots(3, 3) fig, axes = plt.subplots(3, 3)
axes = axes.flatten() axes = axes.flatten()
gammaL = kondo.gammaL gamma = kondo.gamma
idx = kondo.voltage_branches if gammaL.ndim == 3 else ... idx = kondo.voltage_branches if gamma.ndim == 3 else ...
try: try:
axes[0].set_title("Γ") axes[0].set_title("Γ")
img = axes[0].imshow(np.abs(kondo.gamma[idx]), norm=mplcolors.LogNorm(norm_min)) img = axes[0].imshow(np.abs(gamma[idx]), norm=mplcolors.LogNorm(norm_min))
fig.colorbar(img, ax=axes[0]) fig.colorbar(img, ax=axes[0])
except AttributeError: except AttributeError:
pass pass
...@@ -199,7 +199,7 @@ def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6): ...@@ -199,7 +199,7 @@ def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6):
pass pass
try: try:
axes[2].set_title("ΓL") axes[2].set_title("ΓL")
img = axes[2].imshow(np.abs(gammaL), norm=mplcolors.LogNorm(norm_min)) img = axes[2].imshow(np.abs(kondo.gammaL), norm=mplcolors.LogNorm(norm_min))
fig.colorbar(img, ax=axes[2]) fig.colorbar(img, ax=axes[2])
except AttributeError: except AttributeError:
pass pass
...@@ -211,7 +211,7 @@ def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6): ...@@ -211,7 +211,7 @@ def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6):
pass pass
try: try:
axes[4].set_title("δΓ") axes[4].set_title("δΓ")
img = axes[4].imshow(np.abs(kondo.deltaGamma[1 if gammaL.ndim == 3 else ...]), norm=mplcolors.LogNorm(norm_min)) img = axes[4].imshow(np.abs(kondo.deltaGamma[1 if gamma.ndim == 3 else ...]), norm=mplcolors.LogNorm(norm_min))
fig.colorbar(img, ax=axes[4]) fig.colorbar(img, ax=axes[4])
except AttributeError: except AttributeError:
pass pass
... ...
......
...@@ -140,7 +140,7 @@ class GlobalFlags: ...@@ -140,7 +140,7 @@ class GlobalFlags:
if key in os.environ: if key in os.environ:
cls.defaults[key] = type(value)(os.environ[key]) cls.defaults[key] = type(value)(os.environ[key])
if verbose: if verbose:
cls.default['logger'].info('Updated from environment: %s = %s'%(key, cls.defaults[key])) cls.defaults['logger'].info('Updated from environment: %s = %s'%(key, cls.defaults[key]))
if cls.defaults['USE_REFERENCE_IMPLEMENTATION']: if cls.defaults['USE_REFERENCE_IMPLEMENTATION']:
cls.defaults['IGNORE_SYMMETRIES'] = 1 cls.defaults['IGNORE_SYMMETRIES'] = 1
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment