-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #265 from RoseauTechnologies/develop
Version 0.10.0
- Loading branch information
Showing
391 changed files
with
28,586 additions
and
105,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,74 +2,91 @@ | |
myst: | ||
html_meta: | ||
"description lang=en": | | ||
Depending on your status, Roseau Load Flow is available with several types of free or paid licences. A trial | ||
Depending on your status, Roseau Load Flow is available with several types of free or paid licenses. A trial | ||
key is also available. | ||
"description lang=fr": | | ||
En fonction de votre statut, Roseau Load Flow est disponible avec plusieurs types de licences gratuites ou | ||
payantes. Une clef d'essai est également disponible. | ||
"keywords lang=fr": solveur, simulation, réseau, électrique, licence, open-source, gratuit, essai | ||
"keywords lang=en": simulation, distribution grid, solver, open-source, free, test | ||
"keywords lang=en": simulation, distribution grid, solver, license, open-source, free, test | ||
og:image: https://www.roseautechnologies.com/wp-content/uploads/2024/04/DSCF0265-scaled.webp | ||
og:image:alt: An engineer uses Roseau Load Flow to perform compute the electric state of a MV/LV transformer | ||
og:title: Free public licence key | ||
og:title: Free public license key | ||
og:description: | | ||
You can try out RLF without registration on a distribution network of up to ten nodes by using the public licence | ||
You can try out RLF without registration on a distribution network of up to ten nodes by using the public license | ||
key provided below. | ||
--- | ||
|
||
(license-page)= | ||
|
||
# Get and activate your licence | ||
# Get and activate your license | ||
|
||
This project is partially open source. The source code of the Python interface is available on | ||
[GitHub](https://github.com/RoseauTechnologies/Roseau_Load_Flow) under the | ||
[BSD 3-Clause License](https://github.com/RoseauTechnologies/Roseau_Load_Flow/blob/main/LICENSE.md). | ||
The solver used in this project is not open source. You need a valid license key to use it. | ||
|
||
(license-types)= | ||
|
||
## Commercial and free licences | ||
## Types of licenses | ||
|
||
This project is partially open source. The source code of this repository is available under the | ||
[BSD 3-Clause License](https://github.com/RoseauTechnologies/Roseau_Load_Flow/blob/main/LICENSE.md). | ||
### Trial license (free) | ||
|
||
The solver used in this project is not open source. A license has to be purchased to use it. To | ||
obtain a personal or commercial license, please contact us at | ||
[[email protected]](mailto:[email protected]). | ||
The license key **`A8C6DA-9405FB-E74FB9-C71C3C-207661-V3`** can be used with networks containing up | ||
to 10 buses. For example, this key can be used to follow the tutorials in this documentation or for | ||
personal projects. This key is valid indefinitely. | ||
|
||
For networks with less than 11 buses (up to 10 buses), the license key `A8C6DA-9405FB-E74FB9-C71C3C-207661-V3` | ||
can be used free of charge. For example, this key can be used to follow the getting started guide. | ||
### Academic license (free) | ||
|
||
```{note} | ||
Licenses are given **free of charge** for _students and teachers_. Please contact us at | ||
[[email protected]](mailto:[email protected]) to get a license key. | ||
``` | ||
_Students and teachers_ are eligible for **free unlimited licenses** to use in academic projects. | ||
Please reach out to us at [[email protected]](mailto:[email protected]) to | ||
obtain your free license key. The license key will be valid for one year and can be renewed. | ||
|
||
### Commercial license (paid) | ||
|
||
For other commercial or personal use, a license has to be purchased. Please contact us at | ||
[[email protected]](mailto:[email protected]) to obtain a personalized | ||
license. | ||
|
||
(license-activation)= | ||
|
||
## How to activate the license in your project? | ||
|
||
There are two ways to activate the license in your project: | ||
|
||
1. Set the environment variable `ROSEAU_LOAD_FLOW_LICENSE_KEY` to the license key. When this | ||
environment variable is defined, it will automatically be used by the solver to validate the | ||
license, no further action is required. | ||
**This is the recommended approach.** | ||
```{note} | ||
If you need help setting an environment variable, refer to the section | ||
[How to set an environment variable?](license-environment-variable) | ||
``` | ||
2. Call the function `activate_license` with the license key as argument. This function will | ||
activate the license for the current session. If you use this approach, it is recommended to | ||
store the license key in a file and read it from there to avoid hard coding it in your code and | ||
accidentally committing it to your repository. Example: | ||
### Via environment variables (recommended) | ||
|
||
```python | ||
from pathlib import Path | ||
import roseau.load_flow as rlf | ||
Set the environment variable `ROSEAU_LOAD_FLOW_LICENSE_KEY` to the license key. When this environment | ||
variable is defined, it will automatically be used by the solver to validate the license, no further | ||
action is required. | ||
|
||
rlf.activate_license(Path("my_license_key.txt").read_text().strip()) | ||
Please refer to the [How to set an environment variable?](license-environment-variable) section below | ||
if you need help setting an environment variable. | ||
|
||
# Rest of your code here | ||
``` | ||
### Using the `activate_license` function | ||
|
||
where the file `my_license_key.txt` contains `A8C6DA-9405FB-E74FB9-C71C3C-207661-V3` (replace | ||
with your license key). | ||
Call the function `activate_license` with the license key as argument. This function will activate | ||
the license for the current session. If you use this approach, it is recommended to store the | ||
license key in a file and read it from there to avoid hard coding it in your code and accidentally | ||
committing it to your repository. Example: | ||
|
||
```python | ||
from pathlib import Path | ||
import roseau.load_flow as rlf | ||
|
||
rlf.activate_license(Path("my_license_key.txt").read_text().strip()) | ||
|
||
# Rest of your code here | ||
``` | ||
|
||
where the file `my_license_key.txt` contains `A8C6DA-9405FB-E74FB9-C71C3C-207661-V3` (replace | ||
with your license key). | ||
|
||
```{important} | ||
Do not share your license key with others. The license key is personal and should not be shared | ||
publicly. If you use a version control system like _Git_, make sure to exclude the file containing | ||
the license key from versioning by adding it to your `.gitignore` file. | ||
``` | ||
|
||
(license-environment-variable)= | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.