Skip to content

Commit

Permalink
Update inputparser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-salles committed Mar 21, 2024
1 parent a2d0210 commit e89a5e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gospl/tools/inputparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import petsc4py
import numpy as np
import pandas as pd
import ruamel.yaml as YAML
from ruamel.yaml import YAML

from operator import itemgetter
from scipy.interpolate import interp1d
Expand Down Expand Up @@ -41,7 +41,8 @@ def __init__(self, filename):

# Open YAML file
with open(filename, "r") as finput:
self.input = YAML.load(finput, Loader=YAML.Loader)
yaml = YAML(typ='rt')
self.input = yaml.load(finput)

if MPIrank == 0 and "name" in self.input.keys() and self.verbose:
print(
Expand Down

0 comments on commit e89a5e6

Please sign in to comment.