Skip to content

Commit eb2f400

Browse files
committed
The error message for using the old temperature grid argument name added also to Elsewhere and Everywhere.
1 parent ad1a941 commit eb2f400

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

xpsi/Elsewhere.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,12 @@ def __init__(self,
139139
T_everywhere = 5.5,
140140
coderes = 512,
141141
filename = False,
142-
bhac_data = True):
142+
bhac_data = True,
143+
**kwargs):
144+
145+
if 'mycoolgrid' in kwargs:
146+
raise TypeError("The 'mycoolgrid' argument has been removed; "
147+
"use 'use_interpolated_temperature' instead.")
143148

144149
self.sqrt_num_cells = sqrt_num_cells
145150
self.num_rays = num_rays

xpsi/Everywhere.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,12 @@ def __init__(self,
190190
T_everywhere = 5.5,
191191
coderes = 512,
192192
filename=False,
193-
bhac_data = True):
193+
bhac_data = True,
194+
**kwargs):
195+
196+
if 'mycoolgrid' in kwargs:
197+
raise TypeError("The 'mycoolgrid' argument has been removed; "
198+
"use 'use_interpolated_temperature' instead.")
194199

195200
self.num_rays = num_rays
196201

0 commit comments

Comments
 (0)