Export RF to XLSX can't cope with multiple filters
Comments (21)
-
-
I don't think my fluoro kit has multiple filters, just different thickensses of copper, which is why I didn't spot it!
-
ref
#442Solved multiple x-ray filter issue in export of RF data Removed unused and double imports Solved issue with non-existing data (Philips Veradius doesn't send a.o. kVp / minimum filter thickness) Added comments marked with LO for later review (not related to current issue)Signed-off-by: UMCN\z627112 luuk_oostveen@hotmail.com
→ <<cset 66ce8f28afa4>>
-
Rearranged the protocol sheet data gathering from that proposed by @LuukO. Reference to https://docs.djangoproject.com/en/1.10/ref/models/querysets/#all added by @LuukO would indicate fix for ref
#430is not suitable. Possibly need to check for .first() or stick with get() and check for MultipleObjectsReturned. Refs#442.→ <<cset 344fa4a34f43>>
-
Fixed try/except/else mistake. Refs
#442→ <<cset 12b8fdad9923>>
-
Removed concept of pre-testing to check for tables for DX csv export. Dropped use of export_safe too, using replace_comma instead. Might not have been a good idea as now have unicode errors so currently broken. Refs
#430,#442→ <<cset c76adeb4cf22>>
-
All unicode errors resolved. DX export to csv should now work more robustly! Need to see what is happening with filters on the skeletal survey example I have. Refs
#430,#442→ <<cset e3789d896d69>>
-
Removed use of replace_comma on each field in dx csv in favour of checking for commas just before writing the line. Refs
#430,#442→ <<cset 3380dda7226e>>
-
Changed name of get_filters to _get_xray_filterinfo to match rf version. Refs
#430,#442→ <<cset 6697aba758ef>>
-
Added fluoro export tests for single filter (Siemens) and multiple filters (Philips). Philips file not in repo yet. Refs
#442→ <<cset 1714a4b8493a>>
-
Replaced _get_xray_filterinfo in rf_export to be the same as the one from dx_export. Need to add a test with no filters. Refs
#442→ <<cset adbabc3e20a9>>
-
Adding cleanup to new RF export test. Refs
#442.→ <<cset d654d0919794>>
-
Commenting out tests involving the Allura RDSR until I get permission to share it to the repo. Refs
#442→ <<cset f5a57c2fa3ec>>
-
Adding ref
#430and#442to changes→ <<cset acb2069515ae>>
-
Adding ref
#430and#442to changes→ <<cset ef9f77515678>>
-
Throwing in a placeholder comment to release notes refs
#430,#442→ <<cset f65d7c2b52be>>
-
reporter Ed,
no problem for me using the Allura RDSR I provided in the repo.
Best regards,
Luuk
-
Adding Philips RF RDSR and associated filter export tests to the repository. Refs
#442→ <<cset 369f6c151a53>>
-
Thanks @LuukO - I had the other one prepared and I've been given permission now. But I'll keep that offer in mind if I need a second one!
-
- changed status to resolved
-
- edited description
- changed milestone to 0.8.0
-
assigned issue to
- Log in to comment
Thanks for the report @LuukO
It is the same in that it is the
.get()
that is triggering the error when there is more than one filter (should be.all()
), but different in that the DX code has a method of looping through the filters, which needs to be added to the RF export.Is this something you want to have a go at? Maybe by forking the repo on bitbucket, checking out the issue442RFfilterexports branch, making your changes and sending me a pull request aimed at that branch.