Skip to content

Commit e238acd

Browse files
committed
updated warning message for outdated client; fixed plotting helper in ipysliderule
1 parent 2af4331 commit e238acd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clients/python/sliderule/ipysliderule.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ def format(self) -> str:
10991099
return key
11001100
# return empty string if no match
11011101
return ''
1102-
1102+
11031103
@property
11041104
def suffix(self) -> str:
11051105
"""return the file suffix
@@ -1582,7 +1582,7 @@ def plot(self, gdf=None, **kwargs):
15821582
df = gdf[(gdf['rgt'] == RGT) & (gdf['gt'] == GT) &
15831583
(gdf['cycle'] == cycle)]
15841584
# plot reduced data frame
1585-
sc = ax.scatter(df.index.values, df["h_mean"].values,
1585+
sc = ax.scatter(df.index.values, df[column].values,
15861586
c='red', s=2.5, rasterized=True)
15871587
legend_elements.append(matplotlib.lines.Line2D([0], [0],
15881588
color='red', lw=6, label='ATL06-SR'))
@@ -3039,7 +3039,7 @@ def plot(self, **kwargs):
30393039
atl06.set_index('x_atc', inplace=True)
30403040
# plot reduced data frame
30413041
sc = ax.scatter(atl06.index.values,
3042-
atl06["h_mean"].values,
3042+
atl06[column].values,
30433043
c='red', s=2.5, rasterized=True)
30443044
handle = matplotlib.lines.Line2D([0], [0],
30453045
color='red', lw=6, label='ATL06-SR')

clients/python/sliderule/sliderule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def check_version (plugins=[], session=None):
454454

455455
# check minor version mismatches
456456
if versions['server'][1] > versions['client'][1]:
457-
logger.warning(f'The server is running a newer version of the code ({info['server']['version']}) than the client ({info['client']['version']}), you may want to update your client')
457+
logger.warning(f'Warning, this environment is using an outdated client ({info['client']['version']}). The code will run but some functionality supported by the server ({info['server']['version']}) may not be available.')
458458

459459
# return boolean for backward compatibility
460460
return True

0 commit comments

Comments
 (0)