See FRAM demo for description of the demo case with JulES power market model and the video of the demo model runs.
See FRAM mainpage for general description of the FRAM system.
Contact fram@nve.no if you have any questions or feedback.
You need Python version >=3.11 and <3.14 on your machine in order to install and run the demos. If you don't already have Python installed, you can get it here: https://www.python.org/.
You can check the version of python installed by running python --version in terminal window.
Option 1. To install and run fram-demo on your machine, follow these steps:
-
Get fram-demo to your machine:
-
If you use git, clone fram-demo to your machine by running
git clone https://github.com/NVE/fram-demo.gitin your terminal and navigate to the project root foldercd ./fram-demo. -
Or simply download an archived version from
https://github.com/NVE/fram-demo/archive/refs/heads/main.zip, unzip and open terminal infram-demofolder.
-
-
Run
python ./framdemo/install_poetry.py- this should install poetry.exe and create a virtual environment named venv in the root folder of the project.- If
pythonis not recongized as a command, or points to an incorrect python version, try to replacepythonwith.\"path\to\correct\python.exe"and it should work
- If
-
Run
./venv/Scripts/activate- this should activate the virtual environment. -
Run
./poetry.exe install- this should install packages to the virtual environment. -
Run
python ./framdemo/run_all.py- this should run all demos and open a dashboard with result visualisation. Demo will take approximately 1 hour +/- if you run it on a CPU with 8 cores, because the demo will try to start 8 processes to run the model. Demo will use around 4,3 GB storage space on your computer.
Option 2. If you have Docker on your machine, you can run the demo in a container by issuing the following command in a terminal window:
docker run -p 8080:8080 --name fram-demo nvefram/fram-demo:latest
This command will download the latest version of fram-demo Docker image from Docker Hub and start running all demos in a container. When all demos are finished you will see a link to results dashboard in the terminal. Simply Ctrl+Click on the link or open your browser and enter http://localhost:8080 to access the dashboard.
To stop and remove the container issue the following commands in the terminal:
docker stop fram-demo
docker rm fram-demo
Limitation of running the demo in a container is that you will not have access to the code, so you will not be able to make adjustments and run demo with your configuration.
We hope you enjoy the demo and give us your feedback!
Here are some known issues that can occur during the installation:
| Error message | Possible reason | Possible solutions |
|---|---|---|
| Program 'poetry.exe' failed to run. | Windows Security blocks running exe files on your disc | 1. Check your security policy. Change Windows Security settings if you have administrator access. 2. Create folder on a disc that has no security restrictions. |
| Downloading data from Zenodo (demo_1) goes slowly. | No spesific reason, downloading time may vary depending on Zenodo's server capacity. | Downloading data may take several minutes, just wait. |
Error during data download:error: framdemo.demo_1_download_dataset: An exception occured during download of dataset from Zenodo:HTTPSConnectionPool: Max retries exceeded with url: /api/records/... Caused by SSLError ... certificate verify failed: Hostname mismatch, certificate is not valid for 'zenodo.org'. |
Unknown cause, may be something related to security. We post more information when we know more. | This error comes and goes on some PCs, try to run the demo again. |
| Dashboard or demo run slowly. | Speed can depend on many factors depending on your PC setup and number of CPU cores. | Things you can check: - demo folder is located on the local drive, and not on the drive connected via a network. We generally recommend to have the demo folder locally in order to avoid being dependent on the network speed. - Run demo on a PC that has 8 CPU cores. This is the most optimal setup for the demo as it starts 8 processes. |
Error when running .\venv\Scripts\activate:File Path\to\demo\fram-demo\venv\Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. CategoryInfo : SecurityError, PSSecurityExceptionFullyQualifiedErrorId : UnauthorizedAccess |
Unknown cause, occurs sporadically on older systems. We post more information when we know more. | Run Set-ExecutionPolicy RemoteSigned -Scope Process first. |