-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add d3blocks to setup with minimum version for interactive plots
- Loading branch information
Showing
4 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
|
||
__author__ = 'Erdogan Tasksen' | ||
__email__ = '[email protected]' | ||
__version__ = '0.8.4' | ||
__version__ = '0.8.5' | ||
|
||
import pgmpy | ||
# Check version pgmpy | ||
|
@@ -48,19 +48,23 @@ | |
# Version check | ||
import matplotlib | ||
if not version.parse(matplotlib.__version__) >= version.parse("3.3.4"): | ||
raise ImportError('[bnlearn] >Error: Matplotlib version should be >= v3.3.4.\nTry to: pip install -U matplotlib') | ||
raise ImportError('[bnlearn] >Error: Matplotlib version should be >= v3.3.4\nTry to: pip install -U matplotlib') | ||
|
||
import networkx as nx | ||
if not version.parse(nx.__version__) >= version.parse("2.7.1"): | ||
raise ImportError('[bnlearn] >Error: networkx version should be > 2.7.1.\nTry to: pip install -U networkx') | ||
raise ImportError('[bnlearn] >Error: networkx version should be > 2.7.1\nTry to: pip install -U networkx') | ||
|
||
import numpy as np | ||
if not version.parse(np.__version__) >= version.parse("1.24.1"): | ||
raise ImportError('[bnlearn] >Error: numpy version should be > 1.24.1.\nTry to: pip install -U numpy') | ||
raise ImportError('[bnlearn] >Error: numpy version should be > 1.24.1\nTry to: pip install -U numpy') | ||
|
||
import pandas as pd | ||
if not version.parse(pd.__version__) <= version.parse("1.5.3"): | ||
raise ImportError('[bnlearn] >Error: pands version should be <= 1.5.3.') | ||
raise ImportError('[bnlearn] >Error: pands version should be <= 1.5.3') | ||
|
||
import d3blocks as d3 | ||
if not version.parse(d3.__version__) <= version.parse("1.4.9"): | ||
This comment has been minimized.
Sorry, something went wrong. |
||
raise ImportError('[bnlearn] >Error: d3blocks version should be >= 1.4.9') | ||
|
||
# module level doc-string | ||
__doc__ = """ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think this should be
if not version.parse(d3.__version__) >= version.parse("1.4.9"):
I am getting an error when I am running the bnlearn package.