Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions local/rest_api_gcbm/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GCBM REST API Setup

The simulation is currently supported on Linux/macOS. To run the GCBM simulation locally, execute the following steps:
The simulation is currently supported on Linux/macOS. To run the GCBM simulation locally, execute the following steps on `Terminal 1`:

1. Clone the `FLINT.Cloud` repository using the command:

Expand Down Expand Up @@ -50,7 +50,7 @@ The inputs are contained in `GCBM_New_Demo_Run.zip`, present in the root of the

To run the endpoints and start a new GCBM simulation :

1. Unzip `GCBM_New_Demo_Run` and open a terminal inside the folder and run the following curl commands:
1. Unzip `GCBM_New_Demo_Run` and open another `terminal 2` inside the folder and run the following `curl` commands:

2. Create a new simulation (the default title of the simulation is `simulation`; Here the title `run4` is used):
```bash
Expand Down
4 changes: 2 additions & 2 deletions local/rest_api_gcbm/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,9 @@ def getTitle():
input_dir = f"{os.getcwd()}/input/{sim_title}"
if not os.path.exists(f"{input_dir}"):
os.makedirs(f"{input_dir}")
message = "New {sim_title} simulation started. Please move on to the next stage for uploading files at /gcbm/upload."
message = f"New {sim_title} simulation started. Please move on to the next stage for uploading files at /gcbm/upload."
else:
message = "Simulation already exists with name {sim_title}. Please check the list of simulations present before proceeding with a new simulation at gcbm/list. You may also download the input and output files for this simulation at gcbm/download sending parameter title in the body."
message = f"Simulation already exists with name {sim_title}. Please check the list of simulations present before proceeding with a new simulation at gcbm/list. You may also download the input and output files for this simulation at gcbm/download sending parameter title in the body."

return {"data": message}, 200

Expand Down