mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Fix wrong export path (#2621)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com> Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
This commit is contained in:
@@ -254,9 +254,6 @@ class ParametersController(BaseController):
|
||||
filepath = os.path.abspath(
|
||||
os.path.join(
|
||||
os.path.dirname(__file__),
|
||||
".",
|
||||
"portfolio",
|
||||
"optimization",
|
||||
ns_parser.file,
|
||||
)
|
||||
)
|
||||
@@ -403,12 +400,13 @@ class ParametersController(BaseController):
|
||||
f"between {minimum} and {maximum} in steps of "
|
||||
f"{maximum / sum(x > 0 for x in AVAILABLE_OPTIONS[argument])}"
|
||||
)
|
||||
|
||||
console.print(
|
||||
f"[red]The value {value} is not an option for {argument}.\n"
|
||||
f"The value needs to be {options}[/red]"
|
||||
)
|
||||
|
||||
else:
|
||||
self.params[argument] = str(AVAILABLE_OPTIONS[argument]) # type: ignore
|
||||
|
||||
console.print(
|
||||
f"[red]The value {value} is not an option for {argument}.\n"
|
||||
f"The value needs to be within: {options}.[/red]"
|
||||
)
|
||||
|
||||
console.print()
|
||||
|
||||
Reference in New Issue
Block a user