Skip to content

Commit 2d31d50

Browse files
author
Dilmi Wickramanayake
committed
Merge branch 'main' into users/DilmiWickramanayake/Analog_Input_filtering
2 parents ded87ce + 585f3e4 commit 2d31d50

File tree

57 files changed

+698
-658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+698
-658
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ See [GitHub's official documentation](https://help.github.com/articles/using-pul
2121

2222
# Getting Started
2323

24-
This is the command to generate the files in /src/ni/pythonpanel/v1/:
25-
`poetry run python -m grpc_tools.protoc --proto_path=protos --python_out=src/ --grpc_python_out=src/ --mypy_out=src/ --mypy_grpc_out=src/ ni/pythonpanel/v1/python_panel_service.proto`
24+
This is the command to generate the files in /src/ni/panels/v1/:
25+
`poetry run python -m grpc_tools.protoc --proto_path=protos --python_out=src/ --grpc_python_out=src/ --mypy_out=src/ --mypy_grpc_out=src/ ni/panels/v1/panel_service.proto ni/panels/v1/panel_types.proto ni/panels/v1/streamlit_panel_configuration.proto`
2626

2727
# Testing
2828

examples/all_types/all_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import nipanel
88

99
panel_script_path = Path(__file__).with_name("all_types_panel.py")
10-
panel = nipanel.create_panel(panel_script_path)
10+
panel = nipanel.create_streamlit_panel(panel_script_path)
1111

1212
print("Setting values")
1313
for name, value in all_types_with_values.items():

examples/all_types/all_types_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
st.set_page_config(page_title="All Types Example", page_icon="📊", layout="wide")
1313
st.title("All Types Example")
1414

15-
panel = nipanel.get_panel_accessor()
15+
panel = nipanel.get_streamlit_panel_accessor()
1616
for name in all_types_with_values.keys():
1717
st.markdown("---")
1818

examples/hello/hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import nipanel
66

77
panel_script_path = Path(__file__).with_name("hello_panel.py")
8-
panel = nipanel.create_panel(panel_script_path)
8+
panel = nipanel.create_streamlit_panel(panel_script_path)
99

1010
panel.set_value("hello_string", "Hello, World!")
1111

examples/hello/hello_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
st.set_page_config(page_title="Hello World Example", page_icon="📊", layout="wide")
99
st.title("Hello World Example")
1010

11-
panel = nipanel.get_panel_accessor()
11+
panel = nipanel.get_streamlit_panel_accessor()
1212
st.write(panel.get_value("hello_string", ""))

examples/nidaqmx/nidaqmx_continuous_analog_input/nidaqmx_continuous_analog_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import nipanel
1818

1919
panel_script_path = Path(__file__).with_name("nidaqmx_continuous_analog_input_panel.py")
20-
panel = nipanel.create_panel(panel_script_path)
20+
panel = nipanel.create_streamlit_panel(panel_script_path)
2121

2222
try:
2323
print(f"Panel URL: {panel.panel_url}")

examples/nidaqmx/nidaqmx_continuous_analog_input/nidaqmx_continuous_analog_input_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
unsafe_allow_html=True,
3535
)
3636

37-
panel = nipanel.get_panel_accessor()
37+
panel = nipanel.get_streamlit_panel_accessor()
3838
is_running = panel.get_value("is_running", False)
3939

4040
if is_running:

examples/niscope/niscope_ex_fetch_forever.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import nipanel
1212

1313
panel_script_path = Path(__file__).with_name("niscope_ex_fetch_forever_panel.py")
14-
panel = nipanel.create_panel(panel_script_path)
14+
panel = nipanel.create_streamlit_panel(panel_script_path)
1515

1616
print(f"Panel URL: {panel.panel_url}")
1717

examples/niscope/niscope_ex_fetch_forever_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
st.set_page_config(page_title="NI-SCOPE Example", page_icon="📈", layout="wide")
99
st.title("NIScope EX Fetch Forever")
1010

11-
panel = nipanel.get_panel_accessor()
11+
panel = nipanel.get_streamlit_panel_accessor()
1212

1313
waveform = panel.get_value("Waveform", [0])
1414

examples/performance_checker/performance_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
panel_script_path = Path(__file__).with_name("performance_checker_panel.py")
14-
panel = nipanel.create_panel(panel_script_path)
14+
panel = nipanel.create_streamlit_panel(panel_script_path)
1515

1616
amplitude = 1.0
1717
frequency = 1.0

0 commit comments

Comments
 (0)