You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tidy3D is a software product from Flexcompute that enables large scale electromagnetic simulation using the finite-difference time-domain (FDTD) method.
15
+
Tidy3D is a software package for solving extremely large electrodynamics problems using the finite-difference time-domain (FDTD) method. It can be controlled through either an [open source python package](https://github.com/flexcompute/tidy3d) or a [web-based graphical user interface](https://tidy3d.simulation.cloud).
16
16
17
-
This repository stores the python interface for Tidy3d.
17
+
This repository contains the python API to allow you to:
18
18
19
-
This code allows you to:
20
19
* Programmatically define FDTD simulations.
21
20
* Submit and manage simulations running on Flexcompute's servers.
22
21
* Download and postprocess the results from the simulations.
23
22
24
-
You can find a detailed documentation and API reference [here](https://docs.flexcompute.com/projects/tidy3d/en/stable/).
25
-
The source code for our documentation is [here](https://github.com/flexcompute-readthedocs/tidy3d-docs).
@@ -34,7 +31,7 @@ Note that while this front end package is open source, to run simulations on Fle
34
31
You can sign up for an account [here](https://tidy3d.simulation.cloud/signup).
35
32
After that, you can install the front end with the instructions below, or visit [this page](https://docs.flexcompute.com/projects/tidy3d/en/stable/install.html) in our documentation for more details.
36
33
37
-
### Installing the front end
34
+
### Quickstart Installation
38
35
39
36
To install the Tidy3D Python API locally, the following instructions should work for most users.
40
37
@@ -53,124 +50,38 @@ import tidy3d.web as web
53
50
web.configure("XXX")
54
51
```
55
52
56
-
If those commands did not work, advanced installation instructions are below, which should help solve the issue.
53
+
**Advanced installation instructions for all platforms is available in the [documentation installation guides](https://docs.flexcompute.com/projects/tidy3d/en/latest/install.html).**
57
54
58
-
### Advanced Installation Instructions
55
+
### Authentication Verification
59
56
60
-
Some users might require more a specialized installation, which we cover below.
61
-
62
-
#### Using pip (recommended)
63
-
64
-
The easiest way to install the tidy3d python interface is through [pip](https://pypi.org/project/tidy3d/).
65
-
66
-
```
67
-
pip install tidy3d
68
-
```
69
-
70
-
This will install the latest stable version.
71
-
72
-
To get a specific version `x.y.z`, including the "pre-release" versions, you may specify the version in the command as:
73
-
74
-
```
75
-
pip install tidy3d==x.y.z
76
-
```
77
-
78
-
### Installing from source
79
-
80
-
Alternatively, for development purposes, eg. developing your own features, you may download and install the package from source as:
With the front end installed, it must now be configured with your account information, which is done via an "API key".
91
-
92
-
You can find your API key in the [web interface](http://tidy3d.simulation.cloud). After signing in and navigating to the account page by clicking the "Account Center" icon on the left-hand side. Then, click on the "API key" tab on the right hand side of the menu and copy your API key.
93
-
94
-
Note: We refer to your API specific API key value as `XXX` below.
95
-
96
-
To link your API key with Tidy3D, you may use one of three following options:
97
-
98
-
#### Command line (recommended)
99
-
100
-
The easiest way is through the command line via the `tidy3d configure` command. Run:
101
-
102
-
```
103
-
tidy3d configure
104
-
```
105
-
106
-
and then enter your API key `XXX` when prompted.
107
-
108
-
Note that Windows users must run the following instead (ideally in an anaconda prompt):
109
-
110
-
```
111
-
pip install pipx
112
-
pipx run tidy3d configure
113
-
```
114
-
115
-
You can also specify your API key directly as an option to this command using the `api-key` argument, for example:
116
-
117
-
```
118
-
tidy3d configure --apikey=XXX
119
-
```
120
-
121
-
#### Manually
122
-
123
-
Alternatively, you can manually set up the config file where Tidy3D looks for the API key. The API key must be in a file called `.tidy3d/config` located in your home directory, containing the following
57
+
To test the authentication, you may try importing the web interface via.
124
58
125
59
```
126
-
apikey = "XXX"
60
+
python -c "import tidy3d; tidy3d.web.test()"
127
61
```
128
62
129
-
You can manually set up your file like this, or do it through the command line line:
130
-
131
-
``echo 'apikey = "XXX"' > ~/.tidy3d/config``
132
-
133
-
Note the quotes around `XXX`.
134
-
135
-
Note that Windows users will most likely need to place the `.tidy3d/config` file in their `C:\Users\username\` directory (where `username` is your username).
136
-
137
-
#### Environment Variable
138
-
139
-
Lastly, you may set the API key as an environment variable named `SIMCLOUD_APIKEY`.
140
-
141
-
This can be set up using
142
-
143
-
``export SIMCLOUD_APIKEY="XXX"``
144
-
145
-
Note the quotes around `XXX`.
146
-
147
-
### Testing the installation and authentication
148
-
149
-
#### Front end package
150
-
151
-
You can verify the front end installation worked by running:
152
-
153
-
```
154
-
python -c "import tidy3d as td; print(td.__version__)"
155
-
```
63
+
It should pass without any errors if the API key is set up correctly.
156
64
157
-
and it should print out the version number, for example:
65
+
To get started, our documentation has a lot of [examples](https://docs.flexcompute.com/projects/tidy3d/en/latest/notebooks/index.html) for inspiration.
Oops! You've hit a wavelength that doesn't resonate with our server. Try a different frequency!
7
+
8
+
If you have arrived here from a link in our pre-v2.6 documentation, we apologize for the inconvenience. We have restructured our documentation to make it more user-friendly and informative, and the page links have changed. We recommend you return to the `homepage <index.html>`_ and navigate to the page you were looking for from there.
9
+
10
+
Please let us know what happened that got you here by raising a `GitHub issue <https://github.com/flexcompute/tidy3d/issues>`_ if not! We'll do our best to help you out.
This example will process files in the current directory (``./``), using the replacement rules specified in ``test_replace_in_files.json`` for version ``0.18.0``. The ``--dry-run`` flag set to ``True`` ensures that changes are not actually applied, allowing for a safe preview of potential modifications.
84
+
85
+
86
+
Further Guidance
87
+
-----------------
88
+
89
+
- The sphinx warnings are OK as long as the build occurs, errors will cause the crash the build.
90
+
- Make sure all your internal API references start with ``tidy3d.<your_reference>``
91
+
- In notebooks, always have absolute links, otherwise the links will break when the user downloads them.
Copy file name to clipboardExpand all lines: docs/index.rst
+9
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,15 @@ Tidy3D Electromagnetic Solver
22
22
23
23
Tidy3D is a software package for solving extremely large electrodynamics problems using the finite-difference time-domain (FDTD) method. It can be controlled through either an `open source python package <https://github.com/flexcompute/tidy3d>`_ or a `web-based graphical user interface <https://tidy3d.simulation.cloud>`_.
24
24
25
+
This python API allows you to:
26
+
27
+
* Programmatically define FDTD simulations.
28
+
* Submit and manage simulations running on Flexcompute's servers.
29
+
* Download and postprocess the results from the simulations.
0 commit comments