Skip to content

Commit

Permalink
Accept pathlib.Path
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidner committed Nov 23, 2021
1 parent aaea3a5 commit de7b241
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openmdao_bridge_matlab/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import dataclasses
import pathlib
from typing import Any

import numpy as np
Expand All @@ -22,7 +23,7 @@ class MatlabVar:

class MatlabFunctionComp(om.ExplicitComponent):
def initialize(self):
self.options.declare("function_name", types=str)
self.options.declare("function_name", types=(str, pathlib.Path))
self.options.declare("inputs", types=list)
self.options.declare("outputs", types=list)
self.options.declare("desktop", default=False, types=bool)
Expand Down

0 comments on commit de7b241

Please sign in to comment.