onepix-fis-common-function 0.1.0__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.
@@ -0,0 +1,106 @@
1
+ Metadata-Version: 2.4
2
+ Name: onepix-fis-common-function
3
+ Version: 0.1.0
4
+ Summary: Common FIS functions for ONE-PIX imaging methods
5
+ Author: M. Ribes
6
+ Author-email: "G. Russias" <contact@photonics-open-projects.com>
7
+ License: MIT
8
+ Project-URL: Homepage, https://gitlab.com/ton_repo/onepix_fis_common_function
9
+ Project-URL: Source, https://gitlab.com/ton_repo/onepix_fis_common_function
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: importlib-metadata; python_version < "3.10"
13
+
14
+ # fis_common_functions
15
+
16
+
17
+
18
+ ## Getting started
19
+
20
+ To make it easy for you to get started with GitLab, here's a list of recommended next steps.
21
+
22
+ Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
23
+
24
+ ## Add your files
25
+
26
+ - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
27
+ - [ ] [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:
28
+
29
+ ```
30
+ cd existing_repo
31
+ git remote add origin https://gitlab.com/private1120225/onepix_plugins/fis_common_functions.git
32
+ git branch -M main
33
+ git push -uf origin main
34
+ ```
35
+
36
+ ## Integrate with your tools
37
+
38
+ - [ ] [Set up project integrations](https://gitlab.com/private1120225/onepix_plugins/fis_common_functions/-/settings/integrations)
39
+
40
+ ## Collaborate with your team
41
+
42
+ - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
43
+ - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
44
+ - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
45
+ - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
46
+ - [ ] [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
47
+
48
+ ## Test and Deploy
49
+
50
+ Use the built-in continuous integration in GitLab.
51
+
52
+ - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/)
53
+ - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
54
+ - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
55
+ - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
56
+ - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
57
+
58
+ ***
59
+
60
+ # Editing this README
61
+
62
+ When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
63
+
64
+ ## Suggestions for a good README
65
+
66
+ Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
67
+
68
+ ## Name
69
+ Choose a self-explaining name for your project.
70
+
71
+ ## Description
72
+ Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
73
+
74
+ ## Badges
75
+ On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
76
+
77
+ ## Visuals
78
+ Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
79
+
80
+ ## Installation
81
+ Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
82
+
83
+ ## Usage
84
+ Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
85
+
86
+ ## Support
87
+ Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
88
+
89
+ ## Roadmap
90
+ If you have ideas for releases in the future, it is a good idea to list them in the README.
91
+
92
+ ## Contributing
93
+ State if you are open to contributions and what your requirements are for accepting them.
94
+
95
+ For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
96
+
97
+ You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
98
+
99
+ ## Authors and acknowledgment
100
+ Show your appreciation to those who have contributed to the project.
101
+
102
+ ## License
103
+ For open source projects, say how it is licensed.
104
+
105
+ ## Project status
106
+ If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
@@ -0,0 +1,93 @@
1
+ # fis_common_functions
2
+
3
+
4
+
5
+ ## Getting started
6
+
7
+ To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
+
9
+ Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
+
11
+ ## Add your files
12
+
13
+ - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
+ - [ ] [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:
15
+
16
+ ```
17
+ cd existing_repo
18
+ git remote add origin https://gitlab.com/private1120225/onepix_plugins/fis_common_functions.git
19
+ git branch -M main
20
+ git push -uf origin main
21
+ ```
22
+
23
+ ## Integrate with your tools
24
+
25
+ - [ ] [Set up project integrations](https://gitlab.com/private1120225/onepix_plugins/fis_common_functions/-/settings/integrations)
26
+
27
+ ## Collaborate with your team
28
+
29
+ - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
+ - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
+ - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
+ - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
+ - [ ] [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
34
+
35
+ ## Test and Deploy
36
+
37
+ Use the built-in continuous integration in GitLab.
38
+
39
+ - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/)
40
+ - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
+ - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
+ - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
+ - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
+
45
+ ***
46
+
47
+ # Editing this README
48
+
49
+ When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
+
51
+ ## Suggestions for a good README
52
+
53
+ Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
54
+
55
+ ## Name
56
+ Choose a self-explaining name for your project.
57
+
58
+ ## Description
59
+ Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60
+
61
+ ## Badges
62
+ On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63
+
64
+ ## Visuals
65
+ Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66
+
67
+ ## Installation
68
+ Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69
+
70
+ ## Usage
71
+ Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72
+
73
+ ## Support
74
+ Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75
+
76
+ ## Roadmap
77
+ If you have ideas for releases in the future, it is a good idea to list them in the README.
78
+
79
+ ## Contributing
80
+ State if you are open to contributions and what your requirements are for accepting them.
81
+
82
+ For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83
+
84
+ You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
85
+
86
+ ## Authors and acknowledgment
87
+ Show your appreciation to those who have contributed to the project.
88
+
89
+ ## License
90
+ For open source projects, say how it is licensed.
91
+
92
+ ## Project status
93
+ If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
@@ -0,0 +1,95 @@
1
+ 360,0.000129900000,0.000003917000,0.000606100000
2
+ 365,0.000232100000,0.000006965000,0.001086000000
3
+ 370,0.000414900000,0.000012390000,0.001946000000
4
+ 375,0.000741600000,0.000022020000,0.003486000000
5
+ 380,0.001368000000,0.000039000000,0.006450001000
6
+ 385,0.002236000000,0.000064000000,0.010549990000
7
+ 390,0.004243000000,0.000120000000,0.020050010000
8
+ 395,0.007650000000,0.000217000000,0.036210000000
9
+ 400,0.014310000000,0.000396000000,0.067850010000
10
+ 405,0.023190000000,0.000640000000,0.110200000000
11
+ 410,0.043510000000,0.001210000000,0.207400000000
12
+ 415,0.077630000000,0.002180000000,0.371300000000
13
+ 420,0.134380000000,0.004000000000,0.645600000000
14
+ 425,0.214770000000,0.007300000000,1.039050100000
15
+ 430,0.283900000000,0.011600000000,1.385600000000
16
+ 435,0.328500000000,0.016840000000,1.622960000000
17
+ 440,0.348280000000,0.023000000000,1.747060000000
18
+ 445,0.348060000000,0.029800000000,1.782600000000
19
+ 450,0.336200000000,0.038000000000,1.772110000000
20
+ 455,0.318700000000,0.048000000000,1.744100000000
21
+ 460,0.290800000000,0.060000000000,1.669200000000
22
+ 465,0.251100000000,0.073900000000,1.528100000000
23
+ 470,0.195360000000,0.090980000000,1.287640000000
24
+ 475,0.142100000000,0.112600000000,1.041900000000
25
+ 480,0.095640000000,0.139020000000,0.812950100000
26
+ 485,0.057950010000,0.169300000000,0.616200000000
27
+ 490,0.032010000000,0.208020000000,0.465180000000
28
+ 495,0.014700000000,0.258600000000,0.353300000000
29
+ 500,0.004900000000,0.323000000000,0.272000000000
30
+ 505,0.002400000000,0.407300000000,0.212300000000
31
+ 510,0.009300000000,0.503000000000,0.158200000000
32
+ 515,0.029100000000,0.608200000000,0.111700000000
33
+ 520,0.063270000000,0.710000000000,0.078249990000
34
+ 525,0.109600000000,0.793200000000,0.057250010000
35
+ 530,0.165500000000,0.862000000000,0.042160000000
36
+ 535,0.225749900000,0.914850100000,0.029840000000
37
+ 540,0.290400000000,0.954000000000,0.020300000000
38
+ 545,0.359700000000,0.980300000000,0.013400000000
39
+ 550,0.433449900000,0.994950100000,0.008749999000
40
+ 555,0.512050100000,1.000000000000,0.005749999000
41
+ 560,0.594500000000,0.995000000000,0.003900000000
42
+ 565,0.678400000000,0.978600000000,0.002749999000
43
+ 570,0.762100000000,0.952000000000,0.002100000000
44
+ 575,0.842500000000,0.915400000000,0.001800000000
45
+ 580,0.916300000000,0.870000000000,0.001650001000
46
+ 585,0.978600000000,0.816300000000,0.001400000000
47
+ 590,1.026300000000,0.757000000000,0.001100000000
48
+ 595,1.056700000000,0.694900000000,0.001000000000
49
+ 600,1.062200000000,0.631000000000,0.000800000000
50
+ 605,1.045600000000,0.566800000000,0.000600000000
51
+ 610,1.002600000000,0.503000000000,0.000340000000
52
+ 615,0.938400000000,0.441200000000,0.000240000000
53
+ 620,0.854449900000,0.381000000000,0.000190000000
54
+ 625,0.751400000000,0.321000000000,0.000100000000
55
+ 630,0.642400000000,0.265000000000,0.000049999990
56
+ 635,0.541900000000,0.217000000000,0.000030000000
57
+ 640,0.447900000000,0.175000000000,0.000020000000
58
+ 645,0.360800000000,0.138200000000,0.000010000000
59
+ 650,0.283500000000,0.107000000000,0.000000000000
60
+ 655,0.218700000000,0.081600000000,0.000000000000
61
+ 660,0.164900000000,0.061000000000,0.000000000000
62
+ 665,0.121200000000,0.044580000000,0.000000000000
63
+ 670,0.087400000000,0.032000000000,0.000000000000
64
+ 675,0.063600000000,0.023200000000,0.000000000000
65
+ 680,0.046770000000,0.017000000000,0.000000000000
66
+ 685,0.032900000000,0.011920000000,0.000000000000
67
+ 690,0.022700000000,0.008210000000,0.000000000000
68
+ 695,0.015840000000,0.005723000000,0.000000000000
69
+ 700,0.011359160000,0.004102000000,0.000000000000
70
+ 705,0.008110916000,0.002929000000,0.000000000000
71
+ 710,0.005790346000,0.002091000000,0.000000000000
72
+ 715,0.004109457000,0.001484000000,0.000000000000
73
+ 720,0.002899327000,0.001047000000,0.000000000000
74
+ 725,0.002049190000,0.000740000000,0.000000000000
75
+ 730,0.001439971000,0.000520000000,0.000000000000
76
+ 735,0.000999949300,0.000361100000,0.000000000000
77
+ 740,0.000690078600,0.000249200000,0.000000000000
78
+ 745,0.000476021300,0.000171900000,0.000000000000
79
+ 750,0.000332301100,0.000120000000,0.000000000000
80
+ 755,0.000234826100,0.000084800000,0.000000000000
81
+ 760,0.000166150500,0.000060000000,0.000000000000
82
+ 765,0.000117413000,0.000042400000,0.000000000000
83
+ 770,0.000083075270,0.000030000000,0.000000000000
84
+ 775,0.000058706520,0.000021200000,0.000000000000
85
+ 780,0.000041509940,0.000014990000,0.000000000000
86
+ 785,0.000029353260,0.000010600000,0.000000000000
87
+ 790,0.000020673830,0.000007465700,0.000000000000
88
+ 795,0.000014559770,0.000005257800,0.000000000000
89
+ 800,0.000010253980,0.000003702900,0.000000000000
90
+ 805,0.000007221456,0.000002607800,0.000000000000
91
+ 810,0.000005085868,0.000001836600,0.000000000000
92
+ 815,0.000003581652,0.000001293400,0.000000000000
93
+ 820,0.000002522525,0.000000910930,0.000000000000
94
+ 825,0.000001776509,0.000000641530,0.000000000000
95
+ 830,0.000001251141,0.000000451810,0.000000000000
@@ -0,0 +1,34 @@
1
+ import os
2
+ import numpy as np
3
+ from datetime import date
4
+ import time
5
+ import json
6
+ import logging
7
+ from onepix.logging_config import root
8
+ logger = logging.getLogger(__name__)
9
+
10
+ class FisCommonAcquisition:
11
+ def __init__(self,acquisition_class=None):
12
+ if acquisition_class:
13
+ self.acquisition_class = acquisition_class
14
+ base_path = os.path.join(os.path.dirname(os.path.abspath(__file__)))
15
+ self.config_path = os.path.join(base_path, "FIS_common_param.json")
16
+ self.hardware_dict = self._load_json(self.config_path)
17
+ self.spatial_res=self.hardware_dict["spatial_res"]
18
+ print("in common acquisition spatial res is ",self.spatial_res)
19
+
20
+ @staticmethod
21
+ def _load_json(path):
22
+ """Charge un fichier JSON en gérant les erreurs."""
23
+ try:
24
+ with open(path, "r") as f:
25
+ return json.load(f)
26
+ except FileNotFoundError:
27
+ logger.warning(f"⚠️ Warning: {path} not found. Using empty config.")
28
+ return {}
29
+
30
+
31
+
32
+
33
+
34
+