@@ -149,6 +149,25 @@ def test_plot_feature_ndln_time():
149149 return bk_plot .fig
150150
151151
152+ def test_plot_feature_ndln_bad_arg ():
153+ start_time = dt .datetime (2023 , 12 , 24 , 0 , 57 , 0 , 0 )
154+ end_time = start_time + dt .timedelta (seconds = 60 )
155+ bk_plot = BlankPlot (start_time , bkgmap = True , xlim = [- 103.5 , - 99.5 ], ylim = [31.5 , 35.5 ], zlim = [0 , 20 ], tlim = [start_time , end_time ], title = 'XLMA Test Plot' )
156+ nldn_data = lma_read .nldn ('examples/network_samples/gld360enldnns_20231224_daily_v1_lit.raw' )
157+ with pytest .raises (ValueError , match = "color_by must be 'time' or 'polarity'" ):
158+ plot_2d_network_points (bk_plot , nldn_data , color_by = 'bad_arg' )
159+
160+
161+ @pytest .mark .mpl_image_compare
162+ def test_plot_feature_ndln_custom_colors ():
163+ start_time = dt .datetime (2023 , 12 , 24 , 0 , 57 , 0 , 0 )
164+ end_time = start_time + dt .timedelta (seconds = 60 )
165+ bk_plot = BlankPlot (start_time , bkgmap = True , xlim = [- 103.5 , - 99.5 ], ylim = [31.5 , 35.5 ], zlim = [0 , 20 ], tlim = [start_time , end_time ], title = 'XLMA Test Plot' )
166+ nldn_data = lma_read .nldn ('examples/network_samples/gld360enldnns_20231224_daily_v1_lit.raw' )
167+ plot_2d_network_points (bk_plot , nldn_data , c = [0 , 10 , 5 ], cmap = 'plasma' , vmin = 0 , vmax = 10 )
168+ return bk_plot .fig
169+
170+
152171@pytest .mark .mpl_image_compare
153172def test_plot_feature_entln_real_height ():
154173 start_time = dt .datetime (2023 , 12 , 24 , 0 , 57 , 0 , 0 )
@@ -158,6 +177,7 @@ def test_plot_feature_entln_real_height():
158177 plot_2d_network_points (bk_plot , entln_data , actual_height = entln_data ['icheight' ])
159178 return bk_plot .fig
160179
180+
161181@pytest .mark .mpl_image_compare
162182def test_plot_feature_ndln_polarity ():
163183 start_time = dt .datetime (2023 , 12 , 24 , 0 , 57 , 0 , 0 )
0 commit comments