fix some templates
This commit is contained in:
@@ -1,80 +1,8 @@
|
||||
on the case details page when mananging series clicking on a select button launches the series popup when it shouldn't.
|
||||
1. the time / date filters on the logs viewing viewer should be labeled and better organised
|
||||
|
||||
when building the series / stack description for the dv3d viewer we should take into account the plane and contrast if they are defined on the series model.
|
||||
2. on the Unused Media Cleanup page we need to shown loading dialogs when the preview unused files and delete unused files buttons are pressed. please also check the recovered space size calculations as it does not match with what actually happens.
|
||||
|
||||
when importing cases we currently get the following error:
|
||||
web-1 | 2026-06-03 20:20:04.612 | ERROR | atlas.views:uploads_import_htmx:3578 - Error during uploads import
|
||||
web-1 | Traceback (most recent call last):
|
||||
web-1 | File "/usr/src/app/atlas/views.py", line 3576, in uploads_import_htmx
|
||||
web-1 | imported = import_dicoms_helper(request, case_id=case_id, dicoms=dicoms)
|
||||
web-1 | File "/usr/src/app/atlas/api.py", line 280, in import_dicoms_helper
|
||||
web-1 | series_image.save()
|
||||
web-1 | File "/usr/src/app/generic/models.py", line 390, in save
|
||||
web-1 | super().save(*args, **kwargs) # Call the "real" save() method.
|
||||
web-1 | File "/opt/venv/lib/python3.14/site-packages/django/db/models/base.py", line 874, in save
|
||||
web-1 | self.save_base(
|
||||
web-1 | File "/opt/venv/lib/python3.14/site-packages/django/db/models/base.py", line 981, in save_base
|
||||
web-1 | post_save.send(
|
||||
web-1 | File "/opt/venv/lib/python3.14/site-packages/django/dispatch/dispatcher.py", line 209, in send
|
||||
web-1 | response = receiver(signal=self, sender=sender, **named)
|
||||
web-1 | File "/usr/src/app/atlas/models.py", line 1382, in _populate_case_study_date_on_series_image_save
|
||||
web-1 | tags = instance.basic_dicom_tags or {}
|
||||
web-1 | AttributeError: 'SeriesImage' object has no attribute 'basic_dicom_tags'
|
||||
web-1 | Internal Server Error: /atlas/uploads/import/case/241
|
||||
|
||||
please add a unit test that demostrates the failure and then fix the bug and confirm that the unit test then passes.
|
||||
|
||||
please also check why when I add the
|
||||
logger.exception("Error during uploads import")
|
||||
error in production this does not seem to get shown anywhere. The only log just showed
|
||||
ERROR 03/Jun/2026 11:52:50 django.request:249
|
||||
Internal Server Error: /atlas/uploads/import
|
||||
the online local settings are
|
||||
DEBUG = False
|
||||
INTERNAL_IPS = ["82.69.88.125", "217.155.198.96"]
|
||||
#SECURE_SSL_REDIRECT = False
|
||||
#SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
|
||||
#REMOTE_URL = "http://46.101.13.46:8123"
|
||||
#
|
||||
#MEDIA_ROOT = '/home/django/rad/media/'
|
||||
STATIC_ROOT = '/home/ross/web/static/'
|
||||
|
||||
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
||||
|
||||
if not DEBUG:
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
'disable_existing_loggers': False,
|
||||
'formatters': {
|
||||
'verbose': {
|
||||
'format' : "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
|
||||
'datefmt' : "%d/%b/%Y %H:%M:%S"
|
||||
},
|
||||
'simple': {
|
||||
'format': '%(levelname)s %(message)s'
|
||||
},
|
||||
},
|
||||
'handlers': {
|
||||
'file': {
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.FileHandler',
|
||||
'filename': 'log.txt',
|
||||
'formatter': 'verbose'
|
||||
},
|
||||
},
|
||||
'loggers': {
|
||||
'django': {
|
||||
'handlers':['file'],
|
||||
'propagate': True,
|
||||
'level':'DEBUG',
|
||||
},
|
||||
'atlas': {
|
||||
'handlers': ['file'],
|
||||
'level': 'DEBUG',
|
||||
},
|
||||
#"django.core.mail": {"handlers": ["console"], "level": "DEBUG", "propagate": False},
|
||||
#"smtplib": {"handlers": ["console"], "level": "DEBUG", "propagate": False},
|
||||
}
|
||||
}
|
||||
3. on the series tools page we are able to generate reconstructions of selected series. currently the process works but the created dicoms do not align correctly with the original soruce (in terms of 3d volume space) indicating that there is a bug in the reconstruction code. in an ideal setting we would have an option to define /manually set the reconstruction alignment to generate the reconstructions from to account for scans where the patient is not corrcetly aligned with the x,y,z axis. this would be possible by making use of the crosshairs tools in the cornerstone3d library (https://www.cornerstonejs.org/live-examples/crosshairs) to extend the dv3d viewer in a way that allows setting the desired reconstruction planes, projection (min/max/average) mode and slab thickness. please look at fixing the 3d volume space of the current implemenatation and adding a new advanced page that implements the new dv3d implementation (leavving both in place).
|
||||
i have added a dicom series into the folder temp/recon that you can use to test if required.
|
||||
|
||||
4. search widgets such as case-search-widget should show a loading indicator whilst awaiting htmx responses.
|
||||
Reference in New Issue
Block a user