Skip to content

Commit

Permalink
updating append keyword as default
Browse files Browse the repository at this point in the history
  • Loading branch information
mfouesneau committed Nov 18, 2021
1 parent d623135 commit be1f06e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pyphot/astropy/sandbox.py
Expand Up @@ -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)


Expand Down
4 changes: 3 additions & 1 deletion pyphot/sandbox.py
Expand Up @@ -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)


Expand Down

0 comments on commit be1f06e

Please sign in to comment.