Skip to content

Commit 3e7fa40

Browse files
committed
Removed dispy.httpd
Module uses cgi and it has been deprecated in python 3.13
1 parent 14dec65 commit 3e7fa40

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

com/ModelProcessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def main():
196196

197197
if points.shape[0] > 50:
198198
if not args.deterministic:
199-
qmean = BisectingQMeans(random_state=42, qmax=args.target_size[0])
199+
qmean = BisectingQMeans(qmax=args.target_size[0], random_state=42)
200200
qmean.fit(points)
201201
# snap centroids to closest station coordinate
202202
central_points_ids = select_central_point(points, qmean.cluster_centers_)

pgamit/pyJobServer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
# deps
1717
from tqdm import tqdm
1818
import dispy
19-
import dispy.httpd
19+
# removed because it uses cgi
20+
# import dispy.httpd
2021

2122

2223
def test_node(check_gamit_tables=None, check_archive=True, check_executables=True, check_atx=True, software_sync=()):
@@ -402,7 +403,7 @@ def create_cluster(self, function, deps=(), callback=None, progress_bar=None, ve
402403
reentrant = True,
403404
host = self.ip_address)
404405

405-
self.http_server = dispy.httpd.DispyHTTPServer(self.cluster, poll_sec=2)
406+
# self.http_server = dispy.httpd.DispyHTTPServer(self.cluster, poll_sec=2)
406407

407408
# wait for all nodes to be created
408409
tqdm.write(" >> Waiting %d seconds to initialize all nodes... " % self.delay)

0 commit comments

Comments
 (0)