Skip to content

Commit

Permalink
Fix some sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
clizbe committed Mar 3, 2025
1 parent 1402d29 commit 94642e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/src/10-tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ Choose one:

In Julia:

```@example bt-1
```julia @example bt-1
using DuckDB, TulipaIO, TulipaEnergyModel

input_dir = "../../test/inputs/Tiny" # The string should point to the Tiny folder, something like "test/inputs/Tiny"
# TulipaEnergyModel.schema_per_table_name contains the schema with columns and types the file must have
# Set the input directory to the Tiny folder
input_dir = "../../test/inputs/Tiny" # Something like "test/inputs/Tiny" or "test\\inputs\\Tiny"
readdir(input_dir) # Check the input directory is correct - this should show the names of the files in the folder

# Create a DuckDB database connection
connection = DBInterface.connect(DuckDB.DB)

# Read the files into DuckDB tables - luckily the files are already in the Model Schema
# Read the files into DuckDB tables - luckily the files are already formatted to fit the Model Schema
read_csv_folder(connection, input_dir; schemas = TulipaEnergyModel.schema_per_table_name)

# Run the scenario and save the result to the energy_problem
Expand All @@ -48,7 +48,7 @@ Congratulations - you just solved your first scenario! 🌷

Now let's look at some of the results:

```@example bt-1
```julia @example bt-1
# Check

# Export the results to CSV
Expand Down

0 comments on commit 94642e2

Please sign in to comment.