SimbioReader 0.5.7__tar.gz → 0.5.9__tar.gz

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.
Files changed (26) hide show
  1. {simbioreader-0.5.7/src/SimbioReader.egg-info → simbioreader-0.5.9}/PKG-INFO +2 -2
  2. {simbioreader-0.5.7 → simbioreader-0.5.9}/README.md +1 -1
  3. {simbioreader-0.5.7 → simbioreader-0.5.9}/pyproject.toml +1 -1
  4. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/__main__.py +5 -2
  5. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/constants.py +1 -1
  6. {simbioreader-0.5.7 → simbioreader-0.5.9/src/SimbioReader.egg-info}/PKG-INFO +2 -2
  7. {simbioreader-0.5.7 → simbioreader-0.5.9}/LICENSE +0 -0
  8. {simbioreader-0.5.7 → simbioreader-0.5.9}/setup.cfg +0 -0
  9. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/__init__.py +0 -0
  10. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/exceptions.py +0 -0
  11. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/filters.py +0 -0
  12. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/filters_tools.py +0 -0
  13. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/infocli.py +0 -0
  14. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/phases.py +0 -0
  15. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/simbioInfo.py +0 -0
  16. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/subphases.py +0 -0
  17. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/tests.py +0 -0
  18. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/tools.py +0 -0
  19. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader/version.py +0 -0
  20. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader.egg-info/SOURCES.txt +0 -0
  21. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader.egg-info/dependency_links.txt +0 -0
  22. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader.egg-info/entry_points.txt +0 -0
  23. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader.egg-info/requires.txt +0 -0
  24. {simbioreader-0.5.7 → simbioreader-0.5.9}/src/SimbioReader.egg-info/top_level.txt +0 -0
  25. {simbioreader-0.5.7 → simbioreader-0.5.9}/test/test_db.py +0 -0
  26. {simbioreader-0.5.7 → simbioreader-0.5.9}/test/test_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SimbioReader
3
- Version: 0.5.7
3
+ Version: 0.5.9
4
4
  Summary: Python Reader for the data from SIMBIO-SYS instrument suite on-board the ESA mission BepiColombo
5
5
  Author-email: Romolo Politi <Romolo.Politi@inaf.it>
6
6
  License: GNU GPL ver3
@@ -21,7 +21,7 @@ Provides-Extra: docs
21
21
  Requires-Dist: sphinx; extra == "docs"
22
22
  Dynamic: license-file
23
23
 
24
- ![Version 0.5.7](https://img.shields.io/badge/version-0.5.7-blue?style=plastic)
24
+ ![Version 0.5.9](https://img.shields.io/badge/version-0.5.9-blue?style=plastic)
25
25
  ![Language Python 3.13](https://img.shields.io/badge/python-3.13-orange?style=plastic&logo=python)
26
26
  ![BepiColombo SIMBIO-SYS](https://img.shields.io/badge/BepiColombo-SIMBIO--SYS-blue?style=plastic)
27
27
  [![Upload Python Package](https://github.com/SIMBIO-SYS/SimbioReader/actions/workflows/python-publish.yml/badge.svg)](https://github.com/SIMBIO-SYS/SimbioReader/actions/workflows/python-publish.yml)
@@ -1,4 +1,4 @@
1
- ![Version 0.5.7](https://img.shields.io/badge/version-0.5.7-blue?style=plastic)
1
+ ![Version 0.5.9](https://img.shields.io/badge/version-0.5.9-blue?style=plastic)
2
2
  ![Language Python 3.13](https://img.shields.io/badge/python-3.13-orange?style=plastic&logo=python)
3
3
  ![BepiColombo SIMBIO-SYS](https://img.shields.io/badge/BepiColombo-SIMBIO--SYS-blue?style=plastic)
4
4
  [![Upload Python Package](https://github.com/SIMBIO-SYS/SimbioReader/actions/workflows/python-publish.yml/badge.svg)](https://github.com/SIMBIO-SYS/SimbioReader/actions/workflows/python-publish.yml)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "SimbioReader"
3
- version = "0.5.7"
3
+ version = "0.5.9"
4
4
  description="Python Reader for the data from SIMBIO-SYS instrument suite on-board the ESA mission BepiColombo"
5
5
  dependencies = [
6
6
 
@@ -671,14 +671,17 @@ class SimbioReader:
671
671
  # if 'raw' in data_filename:
672
672
  # new_filename.replace('raw','browse_raw')
673
673
  image_file= f"{dest}/{new_filename}.{img_type}"
674
- data.save(image_file, quality=quality)
674
+ if 'cal' in self.fileName.stem:
675
+ data.convert('RGB').save(image_file, quality=quality)
676
+ else:
677
+ data.save(image_file, quality=quality)
675
678
  if template:
676
679
  if not isinstance(template,Path):
677
680
  template = Path(template)
678
681
  if not template.exists():
679
682
  raise FileNotFoundError(f"The template {template.name} was not found")
680
683
  new_label=f"{dest}/{new_filename}.lblx"
681
- copyfile(template,new_label)
684
+ template.rename(new_label)
682
685
  from xml.dom.minidom import parse, parseString, Element
683
686
  import hashlib
684
687
  tree = parse(new_label)
@@ -19,7 +19,7 @@ CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
19
19
  progEpilog = "- For any information or suggestion please contact " \
20
20
  "[bold magenta]Romolo.Politi@inaf.it[/bold magenta]"
21
21
 
22
- VERSION = (0,5,7,'d',1)
22
+ VERSION = (0,5,9,'d',1)
23
23
 
24
24
  datamodel='1.22.0.0'
25
25
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SimbioReader
3
- Version: 0.5.7
3
+ Version: 0.5.9
4
4
  Summary: Python Reader for the data from SIMBIO-SYS instrument suite on-board the ESA mission BepiColombo
5
5
  Author-email: Romolo Politi <Romolo.Politi@inaf.it>
6
6
  License: GNU GPL ver3
@@ -21,7 +21,7 @@ Provides-Extra: docs
21
21
  Requires-Dist: sphinx; extra == "docs"
22
22
  Dynamic: license-file
23
23
 
24
- ![Version 0.5.7](https://img.shields.io/badge/version-0.5.7-blue?style=plastic)
24
+ ![Version 0.5.9](https://img.shields.io/badge/version-0.5.9-blue?style=plastic)
25
25
  ![Language Python 3.13](https://img.shields.io/badge/python-3.13-orange?style=plastic&logo=python)
26
26
  ![BepiColombo SIMBIO-SYS](https://img.shields.io/badge/BepiColombo-SIMBIO--SYS-blue?style=plastic)
27
27
  [![Upload Python Package](https://github.com/SIMBIO-SYS/SimbioReader/actions/workflows/python-publish.yml/badge.svg)](https://github.com/SIMBIO-SYS/SimbioReader/actions/workflows/python-publish.yml)
File without changes
File without changes