scipion-em / scipion-em-tomo

Base tomography Scipion plugin with data model definition
GNU General Public License v3.0
8 stars 4 forks source link

pass kwargs to iterItems of ctf tomo #464

Closed azazellochg closed 4 months ago

azazellochg commented 4 months ago

This will allow to replace:

for ctfTomoSeries in self.inputSetOfCtfTomoSeries.get():
    if tsId == ctfTomoSeries.getTsId():
        return ctfTomoSeries

with:

for item in self.inputSetOfCtfTomoSeries.get().iterItems(where=f"_tsId=='{tsId}'"):
    return item

I don't see any other method in the tomo objects to get ctftomo by tsId

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

azazellochg commented 4 months ago

thanks, Pablo! I'll try it as well