File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -790,6 +790,8 @@ def norm_for_each(
790790 norm_vals = np .expand_dims (np .nanmax (channel [:], axis = trivial ), trivial )
791791 new = (channel [:] - channel .null ) / (norm_vals - channel .null )
792792 if new_channel :
793+ if not isinstance (new_channel , dict ):
794+ new_channel = {}
793795 self .create_channel (
794796 new_channel .pop ("name" , f"{ channel .natural_name } _{ variable .natural_name } _norm" ),
795797 values = new ,
Original file line number Diff line number Diff line change 44
55# --- import --------------------------------------------------------------------------------------
66
7-
7+ import pytest
88import numpy as np
99import glob
1010import os
@@ -47,6 +47,7 @@ def test_v0p2_d1_d2_diagonal():
4747 data .close ()
4848
4949
50+ @pytest .mark .skip (reason = "This test takes a long time and examines rarely used code." )
5051def test_v2p1_MoS2_TrEE_movie ():
5152 ps = sorted (
5253 glob .glob (
@@ -61,6 +62,7 @@ def test_v2p1_MoS2_TrEE_movie():
6162 data .close ()
6263
6364
65+ @pytest .mark .skip (reason = "This test takes a long time and examines rarely used code." )
6466def test_v2p2_WL_wigner ():
6567 p = datasets .COLORS .v2p2_WL_wigner
6668 data = wt .data .from_COLORS (p )
Original file line number Diff line number Diff line change 22
33# --- import --------------------------------------------------------------------------------------
44
5-
5+ import pytest
66import h5py
77import numpy as np
88
1313# --- test ----------------------------------------------------------------------------------------
1414
1515
16+ @pytest .mark .skip (reason = "This test takes a long time and code is rarely used." )
1617def test_COLORS_v2p2_WL_wigner ():
1718 p = datasets .COLORS .v2p2_WL_wigner
1819 data = wt .data .from_COLORS (p )
Original file line number Diff line number Diff line change 22
33# --- import --------------------------------------------------------------------------------------
44
5+ import pytest
56import pathlib
67
78import h5py
1415# --- test ----------------------------------------------------------------------------------------
1516
1617
18+ @pytest .mark .skip (reason = "This test takes a long time and code is rarely used." )
1719def test_COLORS_v2p2_WL_wigner ():
1820 p = datasets .COLORS .v2p2_WL_wigner
1921 data = wt .data .from_COLORS (p )
You can’t perform that action at this time.
0 commit comments