<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I have been trying to use astropy tables and have found that you cannot add a <span style="color: rgb(24, 54, 145); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class="">`None`</span> row with a mask. While I can go and add np.zeroes by hand, it’s a bit annoying to me that it behaves this way. (See examples below.)</div><div class=""><br class=""></div><div class="">Josh</div><div class=""><br class=""></div><div class=""><div class="input" style="page-break-inside: avoid; -webkit-box-orient: horizontal; -webkit-box-align: stretch; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; widows: 1; background-color: rgb(255, 255, 255);"><div class="input_prompt prompt" style="min-width: 11ex; padding: 0.4em; margin: 0px; font-family: monospace; text-align: right; line-height: 1.21429em; color: rgb(0, 0, 128); border-top-width: 1px; border-top-style: solid; border-top-color: transparent;">In [69]:</div><div class="inner_cell" style="-webkit-box-orient: vertical; -webkit-box-align: stretch; display: flex; flex-direction: column; align-items: stretch; -webkit-box-flex: 1; flex: 1 1 0%;"><div class="input_area" style="border: 1px solid rgb(207, 207, 207); border-radius: 4px; background: rgb(247, 247, 247);"><div class="CodeMirror cm-s-ipython" style="font-family: monospace; height: auto; line-height: 1.21429em; position: relative; overflow: hidden; background-image: none; background-position: initial initial; background-repeat: initial initial;"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 5.59375px; left: 5.59375px;" class=""><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="margin: 0px 0px 10px; font-size: 13px; vertical-align: middle; overflow: auto; line-height: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; height: 1em; padding: 0px; color: rgb(85, 85, 85); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; width: 1000px; border-color: rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px inset; transition: border 0.2s linear, box-shadow 0.2s linear; -webkit-transition: border 0.2s linear, box-shadow 0.2s linear; position: absolute; outline: none;" class=""></textarea></div><div class="CodeMirror-scroll" tabindex="-1" draggable="false" style="overflow-y: hidden; overflow-x: auto; margin-bottom: -30px; margin-right: -30px; padding-bottom: 30px; height: 45.1875px; outline: none; position: relative; box-sizing: content-box;"><div class="CodeMirror-sizer" style="position: relative; border-right-width: 30px; border-right-style: solid; border-right-color: transparent; box-sizing: content-box; min-width: 439.75px; margin-left: 0px; min-height: 45px;"><div style="position: relative; top: 0px;" class=""><div class="CodeMirror-lines" style="padding: 0.4em; cursor: text;"><div style="position: relative; outline: none;" class=""><div class="CodeMirror-measure" style="position: absolute; width: 1069.16px; height: 0px; overflow: hidden; visibility: hidden;"></div><div class="CodeMirror-code"><pre style="padding: 0px; font-family: inherit; font-size: inherit; color: inherit; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: normal; border: 0px; z-index: 2; position: relative; overflow: visible; background-color: transparent; background-position: initial initial; background-repeat: initial initial;" class=""><span class="cm-variable">t</span> = <span class="cm-variable">Table</span>([[<span class="cm-number" style="color: rgb(0, 136, 0);">1</span>], [<span class="cm-number" style="color: rgb(0, 136, 0);">2</span>]], <span class="cm-variable">names</span>=(<span class="cm-string" style="color: rgb(186, 33, 33);">'a'</span>, <span class="cm-string" style="color: rgb(186, 33, 33);">'b'</span>), <span class="cm-variable">masked</span>=<span class="cm-builtin" style="color: rgb(0, 128, 0);">True</span>)</pre><pre style="padding: 0px; font-family: inherit; font-size: inherit; color: inherit; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: normal; border: 0px; z-index: 2; position: relative; overflow: visible; background-color: transparent; background-position: initial initial; background-repeat: initial initial;" class=""><span class="cm-variable">t</span>.<span class="cm-variable">add_row</span>(<span class="cm-builtin" style="color: rgb(0, 128, 0);">None</span>, <span class="cm-variable">mask</span>=<span class="cm-builtin" style="color: rgb(0, 128, 0);">True</span>)</pre></div><div class="CodeMirror-cursor" style="border-left-width: 1px; border-left-style: solid; border-left-color: black; z-index: 3; position: absolute; visibility: hidden; border-right-style: none; width: 0px; left: 0px; top: 0px; height: 16px;"></div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; top: 45px;" class=""></div></div></div></div></div></div><div class="output_wrapper" style="position: relative; -webkit-box-orient: vertical; -webkit-box-align: stretch; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; widows: 1; background-color: rgb(255, 255, 255);"><div class="out_prompt_overlay prompt" title="click to scroll output; double click to hide" style="min-width: 11ex; padding: 0px 0.4em; margin: 0px; font-family: monospace; text-align: right; line-height: 1.21429em; height: 396.594px; position: absolute; border-radius: 4px;"></div><div class="output" style="-webkit-box-orient: vertical; -webkit-box-align: stretch; display: flex; flex-direction: column; align-items: stretch;"><div class="output_area" style="padding: 0px; page-break-inside: avoid; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: flex; flex-direction: row; align-items: stretch;"><div class="prompt" style="min-width: 11ex; padding: 0px 0.4em; margin: 0px; font-family: monospace; text-align: right; line-height: 1.21429em;"></div><div class="output_subarea output_pyerr output_text" style="padding: 0.4em 0.4em 0px; -webkit-box-flex: 1; line-height: 1.21429em;"><pre style="padding: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; border: 0px; vertical-align: baseline; background-color: transparent;" class=""><span class="ansired" style="color: rgb(139, 0, 0);">---------------------------------------------------------------------------</span>
<span class="ansired" style="color: rgb(139, 0, 0);">TypeError</span> Traceback (most recent call last)
<span class="ansigreen" style="color: rgb(0, 100, 0);"><ipython-input-69-4b6f404ff930></span> in <span class="ansicyan" style="color: rgb(70, 130, 180);"><module><span class="ansiblue" style="color: rgb(0, 0, 139);">()</span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1</span> </span>t <span class="ansiblue" style="color: rgb(0, 0, 139);">=</span> Table<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span><span class="ansiblue" style="color: rgb(0, 0, 139);">[</span><span class="ansiblue" style="color: rgb(0, 0, 139);">[</span><span class="ansicyan" style="color: rgb(70, 130, 180);">1</span><span class="ansiblue" style="color: rgb(0, 0, 139);">]</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> <span class="ansiblue" style="color: rgb(0, 0, 139);">[</span><span class="ansicyan" style="color: rgb(70, 130, 180);">2</span><span class="ansiblue" style="color: rgb(0, 0, 139);">]</span><span class="ansiblue" style="color: rgb(0, 0, 139);">]</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> names<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span><span class="ansiblue" style="color: rgb(0, 0, 139);">(</span><span class="ansiblue" style="color: rgb(0, 0, 139);">'a'</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> <span class="ansiblue" style="color: rgb(0, 0, 139);">'b'</span><span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> masked<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span>True<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);">----> 2<span class="ansired" style="color: rgb(139, 0, 0);"> </span>t</span><span class="ansiblue" style="color: rgb(0, 0, 139);">.</span>add_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>None<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> mask<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span>True<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);">/Users/joshuaschroeder/Documents/Ureka/python/lib/python2.7/site-packages/astropy/table/table.pyc</span> in <span class="ansicyan" style="color: rgb(70, 130, 180);">add_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(self, vals, mask)</span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1623</span> <span class="ansicyan">3</span> <span class="ansicyan">6</span> <span class="ansicyan">9</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1624</span> """
<span class="ansigreen" style="color: rgb(0, 100, 0);">-> 1625<span class="ansired" style="color: rgb(139, 0, 0);"> </span>self</span><span class="ansiblue" style="color: rgb(0, 0, 139);">.</span>insert_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>len<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>self<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> vals<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> mask<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1626</span> <span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1627</span> <span class="ansigreen" style="color: rgb(0, 100, 0);">def</span> insert_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>self<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> index<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> vals<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span>None<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> mask<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span>None<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">:</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);">/Users/joshuaschroeder/Documents/Ureka/python/lib/python2.7/site-packages/astropy/table/table.pyc</span> in <span class="ansicyan" style="color: rgb(70, 130, 180);">insert_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(self, index, vals, mask)</span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1674</span> <span class="ansired" style="color: rgb(139, 0, 0);"># that have entries for each table column.</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1675</span> <span class="ansigreen" style="color: rgb(0, 100, 0);">if</span> mask <span class="ansigreen" style="color: rgb(0, 100, 0);">is</span> <span class="ansigreen" style="color: rgb(0, 100, 0);">not</span> None <span class="ansigreen" style="color: rgb(0, 100, 0);">and</span> <span class="ansigreen" style="color: rgb(0, 100, 0);">not</span> _is_mapping<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>mask<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">:</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);">-> 1676<span class="ansired" style="color: rgb(139, 0, 0);"> <span class="ansigreen" style="color: rgb(0, 100, 0);">raise</span> </span>TypeError</span><span class="ansiblue" style="color: rgb(0, 0, 139);">(</span><span class="ansiblue" style="color: rgb(0, 0, 139);">"Mismatch between type of vals and mask"</span><span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1677</span> <span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1678</span> <span class="ansired" style="color: rgb(139, 0, 0);"># Now check that the mask is specified for the same keys as the</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansired" style="color: rgb(139, 0, 0);">TypeError</span>: Mismatch between type of vals and mask
</pre><div class=""></div><div class=""><br class=""></div><div class=""><div class="input" style="page-break-inside: avoid; -webkit-box-orient: horizontal; -webkit-box-align: stretch; line-height: 20px;"><div class="input_prompt prompt" style="min-width: 11ex; padding: 0.4em; margin: 0px; font-family: monospace; text-align: right; line-height: 1.21429em; color: rgb(0, 0, 128); border-top-width: 1px; border-top-style: solid; border-top-color: transparent;">In [74]:</div><div class="inner_cell" style="-webkit-box-orient: vertical; -webkit-box-align: stretch; display: flex; flex-direction: column; align-items: stretch; -webkit-box-flex: 1; flex: 1 1 0%;"><div class="input_area" style="border: 1px solid rgb(207, 207, 207); border-radius: 4px; background: rgb(247, 247, 247);"><div class="CodeMirror cm-s-ipython" style="font-family: monospace; height: auto; line-height: 1.21429em; position: relative; overflow: hidden; background-image: none; background-position: initial initial; background-repeat: initial initial;"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 22.5938px; left: 5.59375px;" class=""><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="margin: 0px 0px 10px; font-size: 13px; vertical-align: middle; overflow: auto; line-height: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; height: 1em; padding: 0px; color: rgb(85, 85, 85); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; width: 1000px; border-color: rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px inset; transition: border 0.2s linear, box-shadow 0.2s linear; -webkit-transition: border 0.2s linear, box-shadow 0.2s linear; position: absolute; outline: none;" class=""></textarea></div><div class="CodeMirror-scroll" tabindex="-1" draggable="false" style="overflow-y: hidden; overflow-x: auto; margin-bottom: -30px; margin-right: -30px; padding-bottom: 30px; height: 45.1875px; outline: none; position: relative; box-sizing: content-box;"><div class="CodeMirror-sizer" style="position: relative; border-right-width: 30px; border-right-style: solid; border-right-color: transparent; box-sizing: content-box; min-width: 439.75px; margin-left: 0px; min-height: 45px;"><div style="position: relative; top: 0px;" class=""><div class="CodeMirror-lines" style="padding: 0.4em; cursor: text;"><div style="position: relative; outline: none;" class=""><div class="CodeMirror-measure" style="position: absolute; width: 1069.16px; height: 0px; overflow: hidden; visibility: hidden;"></div><div style="position: relative; z-index: 1;" class=""><div class="CodeMirror-selected" style="position: absolute; left: 0px; top: 17px; width: 369.188px; height: 16px; background: rgb(217, 217, 217);"></div></div><div class="CodeMirror-code"><pre style="padding: 0px; font-family: inherit; font-size: inherit; color: inherit; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: normal; border: 0px; z-index: 2; position: relative; overflow: visible; background-color: transparent; background-position: initial initial; background-repeat: initial initial;" class=""><span class="cm-variable">t</span> = <span class="cm-variable">Table</span>([[<span class="cm-number" style="color: rgb(0, 136, 0);">1</span>], [<span class="cm-number" style="color: rgb(0, 136, 0);">2</span>]], <span class="cm-variable">names</span>=(<span class="cm-string" style="color: rgb(186, 33, 33);">'a'</span>, <span class="cm-string" style="color: rgb(186, 33, 33);">'b'</span>), <span class="cm-variable">masked</span>=<span class="cm-builtin" style="color: rgb(0, 128, 0);">True</span>)</pre><pre style="padding: 0px; font-family: inherit; font-size: inherit; color: inherit; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: normal; border: 0px; z-index: 2; position: relative; overflow: visible; background-color: transparent; background-position: initial initial; background-repeat: initial initial;" class=""><span class="cm-variable">t</span>.<span class="cm-variable">add_row</span>(<span class="cm-builtin" style="color: rgb(0, 128, 0);">None</span>, <span class="cm-variable">mask</span>=<span class="cm-builtin" style="color: rgb(0, 128, 0);">len</span>(<span class="cm-variable">t</span>.<span class="cm-variable">colnames</span>)<span class="cm-operator" style="color: rgb(170, 34, 255); font-weight: bold;">*</span>[<span class="cm-builtin" style="color: rgb(0, 128, 0);">True</span>])</pre></div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; top: 45px;" class=""></div></div></div></div></div></div><div class="output_wrapper" style="position: relative; -webkit-box-orient: vertical; -webkit-box-align: stretch; line-height: 20px;"><div class="out_prompt_overlay prompt" title="click to scroll output; double click to hide" style="min-width: 11ex; padding: 0px 0.4em; margin: 0px; font-family: monospace; text-align: right; line-height: 1.21429em; height: 396.594px; position: absolute; border-radius: 4px;"></div><div class="output" style="-webkit-box-orient: vertical; -webkit-box-align: stretch; display: flex; flex-direction: column; align-items: stretch;"><div class="output_area" style="padding: 0px; page-break-inside: avoid; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: flex; flex-direction: row; align-items: stretch;"><div class="prompt" style="min-width: 11ex; padding: 0px 0.4em; margin: 0px; font-family: monospace; text-align: right; line-height: 1.21429em;"></div><div class="output_subarea output_pyerr output_text" style="padding: 0.4em 0.4em 0px; -webkit-box-flex: 1; line-height: 1.21429em;"><pre style="padding: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; border: 0px; vertical-align: baseline; background-color: transparent;" class=""><span class="ansired" style="color: rgb(139, 0, 0);">---------------------------------------------------------------------------</span>
<span class="ansired" style="color: rgb(139, 0, 0);">TypeError</span> Traceback (most recent call last)
<span class="ansigreen" style="color: rgb(0, 100, 0);"><ipython-input-74-ae9160dbf05d></span> in <span class="ansicyan" style="color: rgb(70, 130, 180);"><module><span class="ansiblue" style="color: rgb(0, 0, 139);">()</span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1</span> </span>t <span class="ansiblue" style="color: rgb(0, 0, 139);">=</span> Table<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span><span class="ansiblue" style="color: rgb(0, 0, 139);">[</span><span class="ansiblue" style="color: rgb(0, 0, 139);">[</span><span class="ansicyan" style="color: rgb(70, 130, 180);">1</span><span class="ansiblue" style="color: rgb(0, 0, 139);">]</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> <span class="ansiblue" style="color: rgb(0, 0, 139);">[</span><span class="ansicyan" style="color: rgb(70, 130, 180);">2</span><span class="ansiblue" style="color: rgb(0, 0, 139);">]</span><span class="ansiblue" style="color: rgb(0, 0, 139);">]</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> names<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span><span class="ansiblue" style="color: rgb(0, 0, 139);">(</span><span class="ansiblue" style="color: rgb(0, 0, 139);">'a'</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> <span class="ansiblue" style="color: rgb(0, 0, 139);">'b'</span><span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> masked<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span>True<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);">----> 2<span class="ansired" style="color: rgb(139, 0, 0);"> </span>t</span><span class="ansiblue" style="color: rgb(0, 0, 139);">.</span>add_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>None<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> mask<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span>len<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>t<span class="ansiblue" style="color: rgb(0, 0, 139);">.</span>colnames<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">*</span><span class="ansiblue" style="color: rgb(0, 0, 139);">[</span>True<span class="ansiblue" style="color: rgb(0, 0, 139);">]</span><span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);">/Users/joshuaschroeder/Documents/Ureka/python/lib/python2.7/site-packages/astropy/table/table.pyc</span> in <span class="ansicyan" style="color: rgb(70, 130, 180);">add_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(self, vals, mask)</span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1623</span> <span class="ansicyan">3</span> <span class="ansicyan">6</span> <span class="ansicyan">9</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1624</span> """
<span class="ansigreen" style="color: rgb(0, 100, 0);">-> 1625<span class="ansired" style="color: rgb(139, 0, 0);"> </span>self</span><span class="ansiblue" style="color: rgb(0, 0, 139);">.</span>insert_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>len<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>self<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> vals<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> mask<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1626</span> <span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1627</span> <span class="ansigreen" style="color: rgb(0, 100, 0);">def</span> insert_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>self<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> index<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> vals<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span>None<span class="ansiblue" style="color: rgb(0, 0, 139);">,</span> mask<span class="ansiblue" style="color: rgb(0, 0, 139);">=</span>None<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">:</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);">/Users/joshuaschroeder/Documents/Ureka/python/lib/python2.7/site-packages/astropy/table/table.pyc</span> in <span class="ansicyan" style="color: rgb(70, 130, 180);">insert_row<span class="ansiblue" style="color: rgb(0, 0, 139);">(self, index, vals, mask)</span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1674</span> <span class="ansired" style="color: rgb(139, 0, 0);"># that have entries for each table column.</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1675</span> <span class="ansigreen" style="color: rgb(0, 100, 0);">if</span> mask <span class="ansigreen" style="color: rgb(0, 100, 0);">is</span> <span class="ansigreen" style="color: rgb(0, 100, 0);">not</span> None <span class="ansigreen" style="color: rgb(0, 100, 0);">and</span> <span class="ansigreen" style="color: rgb(0, 100, 0);">not</span> _is_mapping<span class="ansiblue" style="color: rgb(0, 0, 139);">(</span>mask<span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);">:</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);">-> 1676<span class="ansired" style="color: rgb(139, 0, 0);"> <span class="ansigreen" style="color: rgb(0, 100, 0);">raise</span> </span>TypeError</span><span class="ansiblue" style="color: rgb(0, 0, 139);">(</span><span class="ansiblue" style="color: rgb(0, 0, 139);">"Mismatch between type of vals and mask"</span><span class="ansiblue" style="color: rgb(0, 0, 139);">)</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1677</span> <span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansigreen" style="color: rgb(0, 100, 0);"> 1678</span> <span class="ansired" style="color: rgb(139, 0, 0);"># Now check that the mask is specified for the same keys as the</span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span><span class="ansiblue" style="color: rgb(0, 0, 139);"></span>
<span class="ansired" style="color: rgb(139, 0, 0);">TypeError</span>: Mismatch between type of vals and mask</pre></div></div></div></div><div class=""><br class=""></div></div></div></div></div></div></div></body></html>