You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, great work with the package, it is really helpful. I have a suggestion for improvement. When working with remote storage, using for example RaRe-Technologies/smart_open, or when you accept Dicom in a web application through the form, you may have the file(s) already in some variable, and to store them on the disk and pass the path may be a bit cumbersome.
pydicom is able to work with file-like object and does not need a file path, e.g
return_ds would prevent the file from being saved on the disk and it would return pydicom Dataset because sometimes you want to, for example, save some metadata to the database and you need to read the file repeatedly. Also, template_dcm could accept pydicom Dataset as well.
I would be glad for your feedback on these suggestions and I am willing to open the PR afterward. Of course, I will understand if this functionality is out of the scope of this package, but I think more people could benefit from it.
I am looking forward to your response!
Rado.
The text was updated successfully, but these errors were encountered:
Thanks for your interest in the project and for suggesting changes to improve the current API. I feel it is a good feature to have.
In terms of the implementation maybe when initiating the class you could specify the output as a stream converter = Pdf2EncapsDCM(return_stream=True) and then you could modify the store function to return the stream. Check
Hello,
First of all, great work with the package, it is really helpful. I have a suggestion for improvement. When working with remote storage, using for example RaRe-Technologies/smart_open, or when you accept Dicom in a web application through the form, you may have the file(s) already in some variable, and to store them on the disk and pass the path may be a bit cumbersome.
pydicom is able to work with file-like object and does not need a file path, e.g
It would be nice to have pdf2dcm API ready for such case. First shot at how it could look like
return_ds
would prevent the file from being saved on the disk and it would return pydicom Dataset because sometimes you want to, for example, save some metadata to the database and you need to read the file repeatedly. Also,template_dcm
could accept pydicom Dataset as well.I would be glad for your feedback on these suggestions and I am willing to open the PR afterward. Of course, I will understand if this functionality is out of the scope of this package, but I think more people could benefit from it.
I am looking forward to your response!
Rado.
The text was updated successfully, but these errors were encountered: