Recent Releases of PyOrthanc
PyOrthanc - Pyorthanc 1.22.1
What's Changed
- π Remove warning when importing pyorthanc by @gacou54 in https://github.com/gacou54/pyorthanc/pull/92
Full Changelog: https://github.com/gacou54/pyorthanc/compare/v1.22.0...v1.22.1
Scientific Software - Peer-reviewed
- Python
Published by gacou54 7 months ago
PyOrthanc - Pyorthanc 1.22.0
Breaking changes π₯
upload()now returns a list the uploaded instanceslist[pyorthanc.Instance]## What's Changed- β¨ Add
get_internal_client()to retrieve an Orthanc client inside an orthanc script by @gacou54 in https://github.com/gacou54/pyorthanc/pull/89 - β¨
upload()now allows uploading DICOM files from a zip or directory by @gacou54 in https://github.com/gacou54/pyorthanc/pull/91 - β¨ Add checkbeforeupload option by @ylemarechal in https://github.com/gacou54/pyorthanc/pull/90
Full Changelog: https://github.com/gacou54/pyorthanc/compare/v1.21.0...v1.22.0
Scientific Software - Peer-reviewed
- Python
Published by gacou54 7 months ago
PyOrthanc - Pyorthanc 1.21.0
What's Changed
- β¨ Add URL properties by @ylemarechal in https://github.com/gacou54/pyorthanc/pull/85
Full Changelog: https://github.com/gacou54/pyorthanc/compare/v1.20.1...v1.21.0
Scientific Software - Peer-reviewed
- Python
Published by gacou54 9 months ago
PyOrthanc - Pyorthanc 1.20.1
What's Changed
- β¬οΈ Allows pydicom=3.x.x versions by @gacou54 in https://github.com/gacou54/pyorthanc/pull/88
- β¨ Add kwargs to find_patient/study/series/instance by @Renal-Of-Loon in https://github.com/gacou54/pyorthanc/pull/87
Full Changelog: https://github.com/gacou54/pyorthanc/compare/v1.20.0...v1.20.1
Scientific Software - Peer-reviewed
- Python
Published by gacou54 9 months ago
PyOrthanc - v1.20.0
What's Changed
- β¨ Support for Orthanc 1.12.6 by @gacou54 in https://github.com/gacou54/pyorthanc/pull/82
- π improve documentation and add joss paper by @ylemarechal in https://github.com/gacou54/pyorthanc/pull/67
- π¨ Allow pathlike to be passed to retrieve functions by @Renal-Of-Loon in https://github.com/gacou54/pyorthanc/pull/81
New Contributors
- @Renal-Of-Loon made their first contribution in https://github.com/gacou54/pyorthanc/pull/81
Full Changelog: https://github.com/gacou54/pyorthanc/compare/v1.19.1...v1.20.0
Scientific Software - Peer-reviewed
- Python
Published by gacou54 11 months ago
PyOrthanc - PyOrthanc 1.19.1
What's Changed
- π
Modality().get_query_answers(<query_id>)now returns all answers (i.e matches) of the query instead of the first one. - β¨ Answers are now accessible through
'answers'key from the response of the C-FIND (Modality().find) :python response = modality.find(query={...}) response['ID'] # Query ID (not changed) response['answers'] # Review answers (i.e. matches of the query to modality)
Full Changelog: https://github.com/gacou54/pyorthanc/compare/v1.19.0...v1.19.1
Scientific Software - Peer-reviewed
- Python
Published by gacou54 about 1 year ago
PyOrthanc - PyOrthanc 1.19.0
What's Changed
- β¨ Update client to follow Orthanc 12.5 (API version 26) by @gacou54 in https://github.com/gacou54/pyorthanc/pull/71
- π Improving documentation by @gacou54 in https://github.com/gacou54/pyorthanc/pull/72
- β¨Orthanc docker image with pyorthanc by @ylemarechal in https://github.com/gacou54/pyorthanc/pull/68
Full Changelog: https://github.com/gacou54/pyorthanc/compare/v1.18.0...v1.19.0
Scientific Software - Peer-reviewed
- Python
Published by gacou54 about 1 year ago
PyOrthanc - PyOrthanc 1.17.0
What's Changed
- Update to Orthanc 1.12.3 and Python Plugin 4.2
- MainDicomTags are only queried once
- Resource metadata (e.g. LastUpdate) that is not in the DICOM tag are always query Orthanc
- Remove deprecated function
build_patient_forest()
Full Changelog: https://github.com/gacou54/pyorthanc/compare/v1.16.1...v1.17.0
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 1 year ago
PyOrthanc - PyOrthanc 1.16.1
New features:
- Added the .main_dicom_tags property to all resources (Patient/Study/Series/Instance) to retrieve the main DICOM tags.
Scientific Software - Peer-reviewed
- Python
Published by gacou54 about 2 years ago
PyOrthanc - PyOrthanc 1.16.0
New features:
- Each resources now have a .download() method that retrieve in chunk a zip (Patient, Study, Series) or a DICOM file.
- This is useful when downloading resources
Scientific Software - Peer-reviewed
- Python
Published by gacou54 about 2 years ago
PyOrthanc - PyOrthanc 1.15.1
Fix:
- Series.description property now retrieve the value with the correct DICOM tag.
Scientific Software - Peer-reviewed
- Python
Published by gacou54 about 2 years ago
PyOrthanc - PyOrthanc 1.15.0
New features:
- Each resource as new parent_(patient/study/series) property that facilitate the access to its parent resources
- For instance, it is possible to retrieve the patient corresponding to an instance patient = instance.parent_patient
- Patient, Study and Series objects now have a shared_tags property that retrieve the shared tags in a simplified format
- For more control on the output format, a get_shared_tags(simplify=True/False, short=True/False) method is also accessible
Scientific Software - Peer-reviewed
- Python
Published by gacou54 about 2 years ago
PyOrthanc - PyOrthanc 1.14.1
Fix: - Force a minimum version on the httpx dependencies
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 2 years ago
PyOrthanc - PyOrthanc 1.14.0
Features:
- Add to_orthanc_patient_id, to_orthanc_study_id, to_orthanc_series_id and to_orthanc_instance_id functions to generate Orthanc IDs from DICOM (U)IDs
- orthanc_sdk
- Improve linting and autocompletion
- Follow the Python Plugin 4.1
Other: - Less restrictive dependency on httpx
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 2 years ago
PyOrthanc - PyOrthanc 1.13.1
Fix: - orthanc_sdk - Fix autocomplete in some editor/IDE (e.g. fix the pycharm autocomplete)
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 2 years ago
PyOrthanc - PyOrthanc 1.13.0
Features:
- Add a new submodule orthancsdk.
- When used in an Orthanc Python script, it acts the same as import orthanc
- When used outside Orthanc (i.e. when developing a script), expose the same signature as import orthanc
- This adds autocomplete and linting
- All methods/functions are mock (i.e. do nothing), which is useful when developing
- Use it with `from pyorthanc import orthancsdk`
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 2 years ago
PyOrthanc - PyOrthanc 1.12.3
Fix:
- Fix bug that occurs when Orthanc(return_raw_response=True) is used in functions/classes where returning a httpx.Response object is not possible.
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 2 years ago
PyOrthanc - PyOrthanc 1.12.2
Fix:
- Fix bug where an error is raised at import pyorthanc when using Python 3.8
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 2 years ago
PyOrthanc - PyOrthanc 1.12.1
PyOrthanc 1.12.1 follows Orthanc version 1.12.1.
This release adds many utility functions and improves all resource levels.
- The Orthanc client now supports all httpx.Client parameters (e.g. timeout, headers).
- Add functions query Orthanc on all levels. Allow to filter on DICOM tags and Labels.
- find_patients(), find_studies(), find_series() and find_instances().
-queryorthanc()for lower level query.
- All resources (Patient,Study,SeriesandInstances) now have aself.lockattribute, that keeps the inner state of the resource after the first query.
- Add Labels support to resourcesPatient,Study,SeriesandInstance.
- Add metadata attributes to all resources
-Patient/Study/Series.isstable,Patient/Study/Series.lastupdate,Patient/Study/Series.protected
- Implement all MainDicomTags resources attribute
- RenameRemoteModalitytoModality(and create an aliasRemoteModality=Modality)
- AddPatient/Study/Series.anonymizeasjob()for long anonymization jobs.
- Add modification methodsPatient/Study/Series/Instance.modify()andPatient/Study/Series.modifyas_job()` for long modification jobs.
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 2 years ago
PyOrthanc - PyOrthanc 1.11.5
PyOrthanc v1.11.5 follow Orthanc version 1.11.3.
This release mostly improves the find() function. It now takes an Orthanc object rather than an URL. This allows better control of the configuration for the connection to the Orthanc server.
For example: ```python from pyorthanc import Orthanc, find
orthanc = Orthanc(url='http://localhost:8042/', username='username', password='password') patients = find( orthanc=orthanc, series_filter=lambda s: s.modality == 'RTDOSE' # Optional: filter with pyorthanc.Series object ) ```
Scientific Software - Peer-reviewed
- Python
Published by gacou54 almost 3 years ago
PyOrthanc - PyOrthanc 1.11.4
Adds a way to retrieve the pydicom.FileDataset from the Instance object or with the instance identifier in the Orthanc server.
```python
from pyorthanc import Orthanc, util, Instance
INSTANCE_ID = 'the-orthanc-instance-id'
client = pyorthanc.Orthanc(url='my_url')
pydicomds = util.getpydicom(client, INSTANCE_ID)
or from an Instance object
instance = Instance(client=client, instanceid=INSTANCEID) pydicomds = instance.getpydicom() ```
Adds the possibility to provide a custom header to the Orthanc and AsyncOrthanc clients. The header will be used in every method call.
```python
from pyorthanc import Orthanc
client = Orthanc(url='myurl', headers={'newheadertag': 'headercontent'}) ```
Scientific Software - Peer-reviewed
- Python
Published by gacou54 about 3 years ago
PyOrthanc - PyOrthanc 1.11.1
PyOrthanc has been rewritten almost entirely from 0.2.16.
The new Orthanc client is now automatically generated from https://api.orthanc-server.com/. The version *.*. of PyOrthanc will follow Orthanc version (e.g. PyOrthanc 1.11.* is generated from the API specification of Orthanc 1.11.*).
This means that the method names of the Orthanc object from PyOrthanc 0.2.* are no longer the same.
Changes :
- Orthanc
- New generated client from https://api.orthanc-server.com/.
- Old client is accessible at from pyorthanc.deprecated.client import Orthanc
- Patient/Study/Series/Instance
- Improving method/attribute naming (e.g. patient.get_name() is now patient.name)
- More options when anonymizing
- find
- Adding find() function when searching data on Orthanc with filter.
- RemoteModality
- Fixing some bugs when .move()
- Beta : adding AsyncOrthanc
- Async orthanc client support (needs more testing)
- Adding automatic testing (with docker-compose) for a better dev/testing experience
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 3 years ago
PyOrthanc - PyOrthanc 0.2.16
Scientific Software - Peer-reviewed
- Python
Published by gacou54 over 3 years ago