scout-browser 4.94__py3-none-any.whl → 4.94.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scout/server/blueprints/cases/views.py +5 -5
- {scout_browser-4.94.dist-info → scout_browser-4.94.1.dist-info}/METADATA +1 -1
- {scout_browser-4.94.dist-info → scout_browser-4.94.1.dist-info}/RECORD +6 -6
- {scout_browser-4.94.dist-info → scout_browser-4.94.1.dist-info}/WHEEL +0 -0
- {scout_browser-4.94.dist-info → scout_browser-4.94.1.dist-info}/entry_points.txt +0 -0
- {scout_browser-4.94.dist-info → scout_browser-4.94.1.dist-info}/licenses/LICENSE +0 -0
@@ -7,6 +7,7 @@ import shutil
|
|
7
7
|
from ast import literal_eval
|
8
8
|
from io import BytesIO
|
9
9
|
from operator import itemgetter
|
10
|
+
from tempfile import NamedTemporaryFile, mkdtemp
|
10
11
|
from typing import Generator, Optional, Union
|
11
12
|
|
12
13
|
from cairosvg import svg2png
|
@@ -286,7 +287,9 @@ def pdf_case_report(institute_id, case_name):
|
|
286
287
|
# Workaround to be able to print the case pedigree to pdf
|
287
288
|
if case_obj.get("madeline_info") and case_obj.get("madeline_info") != "":
|
288
289
|
try:
|
289
|
-
write_to =
|
290
|
+
write_to = NamedTemporaryFile(
|
291
|
+
mode="a+", prefix=case_obj.get("_id"), suffix="madeline.png"
|
292
|
+
)
|
290
293
|
svg2png(
|
291
294
|
bytestring=case_obj["madeline_info"],
|
292
295
|
write_to=write_to,
|
@@ -322,11 +325,8 @@ def mt_report(institute_id, case_name):
|
|
322
325
|
institute_obj, case_obj = institute_and_case(store, institute_id, case_name)
|
323
326
|
|
324
327
|
# create a temp folder to write excel files into
|
325
|
-
temp_excel_dir = os.path.join(
|
326
|
-
cases_bp.static_folder, "_".join([case_obj["display_name"], "mt_reports"])
|
327
|
-
)
|
328
|
-
os.makedirs(temp_excel_dir, exist_ok=True)
|
329
328
|
|
329
|
+
temp_excel_dir = mkdtemp(suffix="_".join([case_obj["display_name"], "mt_reports"]))
|
330
330
|
if controllers.mt_excel_files(store, case_obj, temp_excel_dir):
|
331
331
|
data = zip_dir_to_obj(temp_excel_dir)
|
332
332
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: scout-browser
|
3
|
-
Version: 4.94
|
3
|
+
Version: 4.94.1
|
4
4
|
Summary: Clinical DNA variant visualizer and browser
|
5
5
|
Project-URL: Repository, https://github.com/Clinical-Genomics/scout
|
6
6
|
Project-URL: Changelog, https://github.com/Clinical-Genomics/scout/blob/main/CHANGELOG.md
|
@@ -461,7 +461,7 @@ scout/server/blueprints/api/__init__.py,sha256=HR6HjS7ot1K_8Lt5eQdNT154z_FCdHGSi
|
|
461
461
|
scout/server/blueprints/api/views.py,sha256=pbl78wfhrm1T8JmiJDYF3BbTbfFrlF-hQRbuv2GWI0s,3729
|
462
462
|
scout/server/blueprints/cases/__init__.py,sha256=_c17kPFITFYcIVphF4V9bf0PZBer8bU3rtVWQnljKDU,52
|
463
463
|
scout/server/blueprints/cases/controllers.py,sha256=Nn2MrlqAHzDfm8RSkjrWpeCD4W7DoPp_8Gm8Eu4l44Q,54362
|
464
|
-
scout/server/blueprints/cases/views.py,sha256=
|
464
|
+
scout/server/blueprints/cases/views.py,sha256=MQDOnLuywAQkVBgYaZAbaj9f6tps18bpo4nDFm77S4s,43165
|
465
465
|
scout/server/blueprints/cases/static/case_images.js,sha256=pb_gG7DNQc-1lADqSII8YvjBwmHyeQWYVtuu2jyrTlU,14997
|
466
466
|
scout/server/blueprints/cases/static/case_styles.css,sha256=2Pgc8pFf9DR5HM1sTdAjaRWhjL-bK5bsQnLpH54HZak,541
|
467
467
|
scout/server/blueprints/cases/static/edit_pedigree.js,sha256=ntC5fie7SsOYJau8qkke1UHxjiYWY_gBzWcIkGpdJUA,2978
|
@@ -683,8 +683,8 @@ scout/utils/md5.py,sha256=KkgdxOf7xbF9AF40ZjQKCgWaxFWJ9tp9RKjd8SU6IoA,649
|
|
683
683
|
scout/utils/scout_requests.py,sha256=lgPumNI_EikBZR1m9ztZI_mZAfV29y1KGoiBv9kejzQ,12797
|
684
684
|
scout/utils/sort.py,sha256=1AcbeZ6vdt_UXM3BLDBa3aQmN4qxrqtskxwD19oBhvw,756
|
685
685
|
scout/utils/track_resources.py,sha256=eUjSEe-Ff8BIb4BHPC_COkJocQO2PaWueiPz1GAuiwY,2614
|
686
|
-
scout_browser-4.94.dist-info/METADATA,sha256=
|
687
|
-
scout_browser-4.94.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
688
|
-
scout_browser-4.94.dist-info/entry_points.txt,sha256=q_mxFwbMFTwXRDDIRVcqKram2ubMVmvs3CSNvZri1nY,45
|
689
|
-
scout_browser-4.94.dist-info/licenses/LICENSE,sha256=TM1Y9Cqbwk55JVfxD-_bpGLtZQAeN9RovQlqHK6eOTY,1485
|
690
|
-
scout_browser-4.94.dist-info/RECORD,,
|
686
|
+
scout_browser-4.94.1.dist-info/METADATA,sha256=GokLVy4fCW8zv-7QwERH1vldMGvaOn0iIstTGd4KoGA,15642
|
687
|
+
scout_browser-4.94.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
688
|
+
scout_browser-4.94.1.dist-info/entry_points.txt,sha256=q_mxFwbMFTwXRDDIRVcqKram2ubMVmvs3CSNvZri1nY,45
|
689
|
+
scout_browser-4.94.1.dist-info/licenses/LICENSE,sha256=TM1Y9Cqbwk55JVfxD-_bpGLtZQAeN9RovQlqHK6eOTY,1485
|
690
|
+
scout_browser-4.94.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|