| Name | fintrace JSON |
| Version |
1.0.0a2
JSON |
| download |
| home_page | None |
| Summary | An interferometer modeling and ray tracing program |
| upload_time | 2025-10-08 19:23:24 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.8 |
| license | None |
| keywords |
optics
ifo-modeling
ray-tracing
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# fintrace
## Description
This repository is meant to be a generalized combination of finesse and gtrace, two interferometer modeling packages. Through the CLI you can create both a Finesse model as well as *gtrace* to create a physical picture of your setup. Currently, only `.yaml` files are accepted as input for the models, and the syntax of them must be very specific; error messages and helpful text are being added.
You can also use this created model just like you would use a `Finesse` model, as it inherits from `Model`; that is to say we can do all of the interferometric modeling we would be able to do with `Finesse` with the created `Fintrace` model. See the [documentation](https://fintrace.readthedocs.io/en/latest/index.html) for examples.
## Installation
This repository uses its own conda environment `fintrace`, which can be installed with instructions below. The environment must be activate when running scripts.
To install:
Make sure that you have a python package manager installed such as `conda` or `mamba`.
[Anaconda](https://www.anaconda.com/)
[mamba](https://mamba.readthedocs.io/en/latest/)
1. cd into the desired folder you'd like to place this repository
```
cd /path/to/desired/folder
```
2. git clone this repo, then `cd` into it
```
git clone git@gitlab.com:mactodd315/fintrace.git
cd fintrace
```
3. build the `fintrace` environment contained in `environment.yml`:
```
conda env create -f environment.yml
```
or
```
mamba env create -f environment.yml
```
4. Then, enter the environment:
```
conda activate fintrace
```
or
```
mamba activate fintrace
```
You should see `(fintrace)` written before the beginning of your terminal prompt, indicating everything was built successfully.
5. Finally, the code in this repository makes heavy use of the cosmic explorer repo, so it must also be cloned and installed. Clone the cosmic-explorer repo inside some repos folder (it doesn't matter where) and install it:
```
cd /path/to/repos folder
git clone git@gitlab.com:cosmic-explorer/cosmic-explorer.git
cd cosmic-explorer
pip install -e .
```
Then to get back to fintrace, cd back and install it.:
```
cd /path/to/fintrace
pip install -e .
```
You should successfully be able to run code.
## Usage
To use, one must create a `.yaml` file with the right syntax, describing the locations and properties of each optic in the model. Generally, the more specific you are about each optic, the better; however, the examples provided show a good minimum number of parameters for each.
Connections are described using the Finesse syntax, so the user must know how the optical system will be connected before hand.
As an example, the `bowtie.yaml` features 4 mirrors, however all of them are technically beamsplitters in the `.yaml` file because of a non-zero angle of incidence. If you know an optic will have a zero angle of incidence, you should consider its type to be `Mirror`. Using a cavity declaration shown in this example file, we can produce a beam trace of the eigenmode by running:
```
fintrace_plot_yaml bowtie_test.yaml --gtrace figures/bowtie_cavity --beam-origin cavity --draw-width --grid
```

Raw data
{
"_id": null,
"home_page": null,
"name": "fintrace",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "optics, ifo-modeling, ray-tracing",
"author": null,
"author_email": "Matthew Todd <mactodd315@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/88/e9/7eea41b3c3e15d78177497f2b04dabebe96838397b076fb17d3f4a245df7/fintrace-1.0.0a2.tar.gz",
"platform": null,
"description": "# fintrace\n\n\n\n## Description\n\nThis repository is meant to be a generalized combination of finesse and gtrace, two interferometer modeling packages. Through the CLI you can create both a Finesse model as well as *gtrace* to create a physical picture of your setup. Currently, only `.yaml` files are accepted as input for the models, and the syntax of them must be very specific; error messages and helpful text are being added.\n\nYou can also use this created model just like you would use a `Finesse` model, as it inherits from `Model`; that is to say we can do all of the interferometric modeling we would be able to do with `Finesse` with the created `Fintrace` model. See the [documentation](https://fintrace.readthedocs.io/en/latest/index.html) for examples.\n\n## Installation\nThis repository uses its own conda environment `fintrace`, which can be installed with instructions below. The environment must be activate when running scripts.\n\nTo install:\nMake sure that you have a python package manager installed such as `conda` or `mamba`.\n[Anaconda](https://www.anaconda.com/) \n[mamba](https://mamba.readthedocs.io/en/latest/) \n\n1. cd into the desired folder you'd like to place this repository\n```\ncd /path/to/desired/folder\n```\n\n2. git clone this repo, then `cd` into it\n```\ngit clone git@gitlab.com:mactodd315/fintrace.git\ncd fintrace\n```\n\n3. build the `fintrace` environment contained in `environment.yml`:\n```\nconda env create -f environment.yml\n```\nor\n```\nmamba env create -f environment.yml\n```\n\n4. Then, enter the environment:\n```\nconda activate fintrace\n```\nor\n```\nmamba activate fintrace\n```\nYou should see `(fintrace)` written before the beginning of your terminal prompt, indicating everything was built successfully.\n\n5. Finally, the code in this repository makes heavy use of the cosmic explorer repo, so it must also be cloned and installed. Clone the cosmic-explorer repo inside some repos folder (it doesn't matter where) and install it:\n```\ncd /path/to/repos folder\ngit clone git@gitlab.com:cosmic-explorer/cosmic-explorer.git\ncd cosmic-explorer\npip install -e .\n```\n\nThen to get back to fintrace, cd back and install it.:\n```\ncd /path/to/fintrace\npip install -e .\n```\nYou should successfully be able to run code.\n\n\n## Usage\nTo use, one must create a `.yaml` file with the right syntax, describing the locations and properties of each optic in the model. Generally, the more specific you are about each optic, the better; however, the examples provided show a good minimum number of parameters for each. \n\nConnections are described using the Finesse syntax, so the user must know how the optical system will be connected before hand.\n\nAs an example, the `bowtie.yaml` features 4 mirrors, however all of them are technically beamsplitters in the `.yaml` file because of a non-zero angle of incidence. If you know an optic will have a zero angle of incidence, you should consider its type to be `Mirror`. Using a cavity declaration shown in this example file, we can produce a beam trace of the eigenmode by running:\n\n```\nfintrace_plot_yaml bowtie_test.yaml --gtrace figures/bowtie_cavity --beam-origin cavity --draw-width --grid\n```\n\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "An interferometer modeling and ray tracing program",
"version": "1.0.0a2",
"project_urls": {
"Homepage": "https://gitlab.com/mactodd315/fintrace",
"Issues": "https://gitlab.com/mactodd315/fintrace/-/issues"
},
"split_keywords": [
"optics",
" ifo-modeling",
" ray-tracing"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "d875f729cb255a09589d436446e6df59ed4ba420cde056e0c3505f58d85ed40d",
"md5": "1821b5c4cb6708a4bc11847c5eaaeff3",
"sha256": "b7c5cf6dcbcfd31e2755a30c97fc339e45024cc662c4a75aad8cba7f7fdc8a51"
},
"downloads": -1,
"filename": "fintrace-1.0.0a2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1821b5c4cb6708a4bc11847c5eaaeff3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 29582,
"upload_time": "2025-10-08T19:23:19",
"upload_time_iso_8601": "2025-10-08T19:23:19.883306Z",
"url": "https://files.pythonhosted.org/packages/d8/75/f729cb255a09589d436446e6df59ed4ba420cde056e0c3505f58d85ed40d/fintrace-1.0.0a2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "88e97eea41b3c3e15d78177497f2b04dabebe96838397b076fb17d3f4a245df7",
"md5": "d0d831c664c3426f03368f4b2eb30ebb",
"sha256": "286f8dc4a7f4a48d8dcc5913442c910a8d82c28d5188eb9861caee80c9d0f6be"
},
"downloads": -1,
"filename": "fintrace-1.0.0a2.tar.gz",
"has_sig": false,
"md5_digest": "d0d831c664c3426f03368f4b2eb30ebb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 30028,
"upload_time": "2025-10-08T19:23:24",
"upload_time_iso_8601": "2025-10-08T19:23:24.336289Z",
"url": "https://files.pythonhosted.org/packages/88/e9/7eea41b3c3e15d78177497f2b04dabebe96838397b076fb17d3f4a245df7/fintrace-1.0.0a2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-08 19:23:24",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "mactodd315",
"gitlab_project": "fintrace",
"lcname": "fintrace"
}