inlab-geo / cofi-examples

Inversion problem examples running with CoFI
https://colab.research.google.com/github/inlab-geo/cofi-examples/blob/main/index.ipynb
BSD 2-Clause "Simplified" License
5 stars 6 forks source link

Creating a new example from template failed #2

Closed h-hollmann closed 2 years ago

h-hollmann commented 2 years ago

I executed this command:

python utils/_create_new_example.py newprob

And I received this error message:

File "<stdin>", line 1
    existing_examples = glob(f"{NOTEBOOKS_FOLDER}/*/")
                                                    ^
SyntaxError: invalid syntax

The error went away (and the command was correctly executed) after deleting the f, i.e. writing this command instead:

existing_examples = glob("{NOTEBOOKS_FOLDER}/*/")

I received the same error in other lines where a string was created. The solution was each time to delete the f. This might be a problem between operating systems.

h-hollmann commented 2 years ago

Solved, see #3 .