@@ -83,9 +83,22 @@ def __init__(
8383 self ._pan_res = None
8484 self ._ms_res = None
8585
86+ self ._job_id = None
87+
8688 # Initialization from the super class
8789 super ().__init__ (product_path , archive_path , output_path , remove_tmp , ** kwargs )
8890
91+ def _post_init (self , ** kwargs ) -> None :
92+ """
93+ Function used to post_init the products
94+ (setting sensor type, band names and so on)
95+ """
96+ # Job ID
97+ self ._job_id = self ._get_job_id ()
98+
99+ # Post init done by the super class
100+ super ()._post_init (** kwargs )
101+
89102 def get_default_band_path (self , ** kwargs ) -> Union [CloudPath , Path ]:
90103 """
91104 Get default band (:code:`GREEN` for optical data) path.
@@ -467,7 +480,7 @@ def _get_condensed_name(self) -> str:
467480 Returns:
468481 str: Condensed name
469482 """
470- return f"{ self .get_datetime ()} _{ self .constellation .name } _{ self .product_type .name } _{ self .band_combi .name } "
483+ return f"{ self .get_datetime ()} _{ self .constellation .name } _{ self .product_type .name } _{ self .band_combi .name } _ { self . _job_id } "
471484
472485 def _get_path (
473486 self , filename : str = "" , extension : str = ""
@@ -683,10 +696,20 @@ def default_transform(self, **kwargs) -> (affine.Affine, int, int, CRS):
683696 @abstractmethod
684697 def _get_tile_path (self ) -> Union [CloudPath , Path ]:
685698 """
686- Get the DIMAP filepath
699+ Get the VHR tile path
700+
701+ Returns:
702+ Union[CloudPath, Path]: VHR filepath
703+ """
704+ raise NotImplementedError
705+
706+ @abstractmethod
707+ def _get_job_id (self ) -> Union [CloudPath , Path ]:
708+ """
709+ Get VHR job ID
687710
688711 Returns:
689- Union[CloudPath, Path]: DIMAP filepath
712+ Union[CloudPath, Path]: VHR product ID
690713 """
691714 raise NotImplementedError
692715
0 commit comments