Skip to content

Commit

Permalink
remove add_path_structure
Browse files Browse the repository at this point in the history
  • Loading branch information
hgloeckner committed Aug 17, 2024
1 parent eccb326 commit a40b154
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/halodrops/helper/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def populate_sonde_instances(self) -> Dict:
Sondes[sonde_id] = Sonde(sonde_id, launch_time=launch_time)
Sondes[sonde_id].add_launch_detect(launch_detect)
Sondes[sonde_id].add_flight_id(self.flight_id)
Sondes[sonde_id].add_path_structure(self.path_structure)
Sondes[sonde_id].add_platform_id(self.platform_id)
Sondes[sonde_id].add_afile(a_file)
Sondes[sonde_id].add_level_dir()
Expand Down
12 changes: 0 additions & 12 deletions src/halodrops/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ def __post_init__(self):
if self.launch_time is not None:
object.__setattr__(self, "sort_index", self.launch_time)

def add_path_structure(self, path_structure="levels_first"):
"""Sets attribute of file structure
Parameters:
----------
path_structure : str, optional
The structure of the paths to store data. Default is to have "/pathtodata/Level_#/flight_id".
But to be backwards compatible it is possible to use the old structure of "/pathtodata/flight_id/Level_#"
if the user specifies path_structure="flightid_first".
"""
object.__setattr__(self, "path_structure", path_structure)
return self

def add_flight_id(self, flight_id: str) -> None:
"""Sets attribute of flight ID
Expand Down

0 comments on commit a40b154

Please sign in to comment.