Skip to content

Commit

Permalink
proposed fix to issue 398
Browse files Browse the repository at this point in the history
  • Loading branch information
Martina Gerbino authored and JesusTorrado committed Mar 5, 2025
1 parent 79da2bb commit 0415069
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cobaya/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,9 @@ def install(*infos, **kwargs):
package_install = info.get("package_install") or {}
# If a class_name AND pip install were specified, make sure the class name is
# used. Otherwise the pip package would be inferred from the alias.
if (
package_install == "pip" or
("pip" in package_install and package_install["pip"] is None)
):
if(package_install == "pip"):
package_install = {"pip": None}
if("pip" in package_install and package_install["pip"] is None):
package_install["pip"] = class_name
min_version = package_install.get('min_version')

Expand Down

0 comments on commit 0415069

Please sign in to comment.