Skip to content

Commit 3ea7b66

Browse files
committed
Only look in gridsquare dm files
1 parent 664489c commit 3ea7b66

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/murfey/client/contexts/spa_metadata.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ def post_transfer(
181181
},
182182
)
183183

184-
elif transferred_file.suffix == ".dm" and environment:
184+
elif (
185+
transferred_file.suffix == ".dm"
186+
and transferred_file.name.startswith("GridSquare")
187+
and environment
188+
):
185189
gs_name = transferred_file.stem.split("_")[1]
186190
fh_positions = _foil_hole_positions(transferred_file, int(gs_name))
187191
source = _get_source(transferred_file, environment=environment)

0 commit comments

Comments
 (0)