1
1
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2
- # Last modified by David J Turner (turne540@msu.edu) 25/08/2025, 14:19 . Copyright (c) The Contributors
2
+ # Last modified by David J Turner (turne540@msu.edu) 25/08/2025, 14:45 . Copyright (c) The Contributors
3
3
4
4
import json
5
5
import os
@@ -841,4 +841,21 @@ def check_telescope_choices(telescope: Union[str, List[str]]) -> List[str]:
841
841
# here usable in the rest of the current module
842
842
CENSUS = CENSUS ['xmm' ]
843
843
BLACKLIST = BLACKLIST ['xmm' ]
844
+
845
+ # The multi-mission branch has different behaviours for the creation of output directories, and this chunk of
846
+ # code was removed, so it must be reinstated for XMM-only XGA
847
+ # Make a storage directory where specific source name directories will then be created, there profile objects
848
+ # created for those sources will be saved
849
+ if not os .path .exists (OUTPUT + "profiles" ):
850
+ os .makedirs (OUTPUT + "profiles" )
851
+
852
+ # Also making a storage directory specifically for products which are combinations of different ObsIDs
853
+ # and instruments
854
+ if not os .path .exists (OUTPUT + "combined" ):
855
+ os .makedirs (OUTPUT + "combined" )
856
+
857
+ # And create an inventory file for that directory
858
+ if not os .path .exists (OUTPUT + "combined/inventory.csv" ):
859
+ with open (OUTPUT + "combined/inventory.csv" , 'w' ) as inven :
860
+ inven .writelines (["file_name,obs_ids,insts,info_key,src_name,type" ])
844
861
# ------------------------------------------------------------------------------------------
0 commit comments