Skip to content

Commit

Permalink
v__0.130
Browse files Browse the repository at this point in the history
  • Loading branch information
PokefanMarcel committed Jul 5, 2024
1 parent 9f98cfb commit 5da7a16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified mec/__pycache__/nf.cpython-310.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions mec/nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ def draw(self, draw_prices=False, mu_a=None, plot_galois=False, entering_a=None,
style='dotted', edge_color='white')

q_z = np.concatenate([self.n_x,self.m_y])
labels = {z: f"{ ('n'*self.nbx+ 'm'*self.nby)[k]}={q_z[k]:.0f}"+'\n'+z+'\n' for k,z in enumerate(self.digraph.nodes()) }
labels = {z: f"{ ('n'*self.nbx + 'm'*self.nby)[k]}={q_z[k]:.2f}"+'\n'+z+'\n' for k,z in enumerate(self.digraph.nodes()) }
if draw_prices:
labels = {z: labels[z] + f"p={self.p_z[k]:.0f}" for k,z in enumerate(self.digraph.nodes())}
labels = {z: labels[z] + f"p={self.p_z[k]:.2f}" for k,z in enumerate(self.digraph.nodes())}
nx.draw_networkx_labels(self.digraph, self.pos, labels,font_size=10,verticalalignment = 'center')

edge_labels = {e: '' for e in self.digraph.edges()}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="mec",
version="0.129",
version="0.130",
authors=["Alfred Galichon"],
author_email="ag133@nyu.edu",
licence="",
Expand Down

0 comments on commit 5da7a16

Please sign in to comment.