Skip to content

Commit 4e16c3e

Browse files
Makefile update
1 parent d735fa9 commit 4e16c3e

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

examples/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ all : $(CIRCUITS_PY)
1616
else \
1717
ANALYSIS_MODE="trans"; \
1818
fi; \
19-
echo "Generating $@"; \
20-
$(BIN_DIR)/asysc -i $< -o $@ -t $$ANALYSIS_MODE
19+
CMD="$(BIN_DIR)/asysc -i $< -o $@ -t $$ANALYSIS_MODE"; \
20+
printf "Generating %-50s [%s]\n" "$@" "$$CMD"; \
21+
$$CMD
2122
ifeq ($(GPROF),1)
2223
gprof $(BIN_DIR)/asysc > gmon.txt
2324
endif
@@ -34,4 +35,5 @@ run: all
3435
popd > /dev/null; \
3536
done
3637

37-
.SILENT:
38+
.SILENT:
39+
.PHONY: all clean run

examples/ac/RLC_slider/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ def update_all():
7474
my_circuit.L.init( 1e-5)
7575
axs.set_xlabel("Freq (Hz)")
7676
axs.set_ylabel("Gain")
77-
axs.legend(ylabel)
7877
axs.grid(True, which="both")
7978
axs.set_xscale('log')
8079
r_slider.on_changed(update_R)
8180
c_slider.on_changed(update_C)
8281
l_slider.on_changed(update_L)
8382
update_all()
83+
axs.legend(ylabel)
8484
plt.show()
8585

examples/transient/RLC/simulation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def update_all():
5252
r_axe = plt.axes([0.1, 0.06, 0.80, 0.03])
5353
r_slider = Slider(ax=r_axe, label='R', valmin=0, valmax=10, valinit=5)
5454
r_slider.on_changed(update_R)
55+
my_circuit._RV.init( 5 )
5556
update_all()
5657

5758
plt.show()

0 commit comments

Comments
 (0)