-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_with_topspin_python.bat
More file actions
28 lines (22 loc) · 975 Bytes
/
test_with_topspin_python.bat
File metadata and controls
28 lines (22 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
REM Test script using TopSpin's built-in Python environment
REM This bypasses network issues by using the Python installation that comes with TopSpin
echo ========================================
echo Testing TopSpin API Wrapper
echo ========================================
echo.
echo [Test 1] Using TopSpin's built-in Python...
echo Python location: D:\topspin\python\python.exe
echo.
echo [Test 2] Testing TopSpin API import...
D:\topspin\python\python.exe -c "from bruker.api.topspin import Topspin; print(' OK - TopSpin API imported successfully')"
echo.
echo [Test 3] Testing TopSpin initialization...
D:\topspin\python\python.exe -c "from bruker.api.topspin import Topspin; t = Topspin(); print(f' OK - Version: {t.getVersion()}')"
echo.
echo [Test 4] Testing topspin_api.py module...
D:\topspin\python\python.exe topspin_api.py
echo.
echo ========================================
echo Testing Complete!
echo ========================================