<p><a href="https://gerrit.osmocom.org/c/pysim/+/23538">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/23538/1/pySim-shell.py">File pySim-shell.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/23538/1/pySim-shell.py@372">Patch Set #1, Line 372:</a> <code style="font-family:monospace,monospace"> card_data_register(CardDataCsv(csv_default))</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">they might not be exclusive-or. You could register them in the order that the opts.csv is asked first, and as a fall-back the ~/.osmocom/... is used.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/23538/1/pySim/card_data.py">File pySim/card_data.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/23538/1/pySim/card_data.py@33">Patch Set #1, Line 33:</a> <code style="font-family:monospace,monospace"> """abstract implementation of gst_data that only verifies the function parameters"""</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">get_data</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/23538/1/pySim/card_data.py@70">Patch Set #1, Line 70:</a> <code style="font-family:monospace,monospace"> if not cr:</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This way you open, read, parse and search the CSV file on every get(). Not sure if that was intentional. I would have loaded the file once int he constructor and then simply iterated through that in-memory representation. Not critical.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23538">change 23538</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23538"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I51835ccb16bcbce35e7f3765e8927a4451509e77 </div>
<div style="display:none"> Gerrit-Change-Number: 23538 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 29 Mar 2021 20:46:38 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>