diff --git a/pyphot/astropy/sandbox.py b/pyphot/astropy/sandbox.py index 10fca47..4b44ec9 100644 --- a/pyphot/astropy/sandbox.py +++ b/pyphot/astropy/sandbox.py @@ -1534,9 +1534,11 @@ def add_filter(self, f, **kwargs): msg = "Filter wavelength must have units for storage." raise AttributeError(msg) + append = kwargs.pop('append', True) + f.write_to("{0:s}".format(self.source), tablename='/filters/{0}'.format(f.name), - createparents=True, + createparents=True, append=append, **kwargs) diff --git a/pyphot/sandbox.py b/pyphot/sandbox.py index 4bdc951..af4a3a4 100644 --- a/pyphot/sandbox.py +++ b/pyphot/sandbox.py @@ -1527,9 +1527,11 @@ def add_filter(self, f, **kwargs): msg = "Filter wavelength must have units for storage." raise AttributeError(msg) + append = kwargs.pop('append', True) + f.write_to("{0:s}".format(self.source), tablename='/filters/{0}'.format(f.name), - createparents=True, + createparents=True, append=append, **kwargs)