URL
https://opencores.org/ocsvn/nocmodel/nocmodel/trunk
Subversion Repositories nocmodel
Compare Revisions
- This comparison shows the changes necessary to convert path
/nocmodel
- from Rev 2 to Rev 3
- ↔ Reverse comparison
Rev 2 → Rev 3
/trunk/nocmodel/noc_guilib.py
40,8 → 40,13
NoCmodel objects. |
|
""" |
try: |
import matplotlib.pyplot as plt |
has_matplotlib = True |
except: |
print("Matplotlib package not found. Drawing functions will not work.") |
has_matplotlib = False |
|
import matplotlib.pyplot as plt |
import networkx as nx |
|
from noc_base import * |
58,6 → 63,10
* nodepos: Optional dictionary where keys are router's indexes and values |
are tuples with x and y positions. |
""" |
if not has_matplotlib: |
print("Function not available") |
return None |
|
# node positions |
if rectangular: |
if nodepos == None: |
/trunk/setup.py
55,5 → 55,6
classifiers=filter(None, classifiers.split("\n")), |
packages=[ |
'nocmodel', |
'nocmodel.basicmodels', |
], |
) |
/trunk/MANIFEST.in
0,0 → 1,4
include *.txt |
recursive-include doc * |
recursive-include examples * |
|
/trunk/examples/basic_example.py
31,7 → 31,6
# 03-03-2011 : (OD) initial release |
# |
|
import matplotlib.pyplot as plt |
import myhdl |
import logging |
|