Skip to content

Commit 77bf4cb

Browse files
committed
Rename 'request_sim_processing' to 'request_sim_reconstruction'
1 parent 39983fa commit 77bf4cb

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/murfey/client/contexts/sim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def post_transfer(
5858
capture_post(
5959
base_url=str(environment.url.geturl()),
6060
router_name="workflow_sim.router",
61-
function_name="request_sim_processing",
61+
function_name="request_sim_reconstruction",
6262
token=self._token,
6363
instrument_name=environment.instrument_name,
6464
data={

src/murfey/server/api/workflow_sim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class SIMDataFile(BaseModel):
2727
file: Path
2828

2929

30-
@router.post("/sessions/{session_id}/process_data")
31-
def request_sim_processing(
30+
@router.post("/sessions/{session_id}/sim_recon")
31+
def request_sim_reconstruction(
3232
session_id: int,
3333
sim_data: SIMDataFile,
3434
murfey_db: SQLModelSession = murfey_db,

src/murfey/util/route_manifest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,8 +1453,8 @@ murfey.server.api.workflow_fib.router:
14531453
methods:
14541454
- POST
14551455
murfey.server.api.workflow_sim.router:
1456-
- path: /workflow/sim/sessions/{session_id}/process_data
1457-
function: request_sim_processing
1456+
- path: /workflow/sim/sessions/{session_id}/sim_recon
1457+
function: request_sim_reconstruction
14581458
path_params:
14591459
- name: session_id
14601460
type: int

tests/client/contexts/test_sim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def test_post_transfer(
176176
mock_capture_post.assert_any_call(
177177
base_url=mock.ANY,
178178
router_name="workflow_sim.router",
179-
function_name="request_sim_processing",
179+
function_name="request_sim_reconstruction",
180180
token=context._token,
181181
instrument_name=instrument_name,
182182
data={

tests/server/api/test_workflow_sim.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pytest
66
from pytest_mock import MockerFixture
77

8-
from murfey.server.api.workflow_sim import SIMDataFile, request_sim_processing
8+
from murfey.server.api.workflow_sim import SIMDataFile, request_sim_reconstruction
99
from murfey.util import sanitise_path
1010
from murfey.util.config import MachineConfig
1111

@@ -33,7 +33,7 @@ def visit_dir(tmp_path: Path):
3333
(True, True, True, False), # Incorrect output dir
3434
),
3535
)
36-
def test_request_sim_processing(
36+
def test_request_sim_reconstruction(
3737
mocker: MockerFixture,
3838
tmp_path: Path,
3939
visit_dir: Path,
@@ -120,7 +120,9 @@ def test_request_sim_processing(
120120
)
121121

122122
# Run the function and check that the expected calls were made
123-
request_sim_processing(session_id=session_id, sim_data=sim_data, murfey_db=mock_db)
123+
request_sim_reconstruction(
124+
session_id=session_id, sim_data=sim_data, murfey_db=mock_db
125+
)
124126

125127
# Check that the expected calls were made
126128
# The parameters are toggled 'False' one at a time

0 commit comments

Comments
 (0)