Get rid of DeprecationWarning from MOC.write() usage in core
@@ -256,7 +256,7 @@ class CdsClass(BaseQuery):
self.path_moc_file = os.path.join(os.getcwd(), 'moc.fits')
if os.path.isfile(self.path_moc_file): # Silent overwrite
os.remove(self.path_moc_file)
- region.write(self.path_moc_file, format="fits")
+ region.save(self.path_moc_file, format="fits")
# add the moc region payload to the request payload
elif isinstance(region, CircleSkyRegion):
# add the cone region payload to the request payload
