Skip to content

Commit ff133b4

Browse files
authored
"Decommissioning" update_cube for now (#100)
* "Decommissioning" `update_cube` for now `update_cube` -> `_update_cube` * Updating reference to update_cube in test_make_cube.py
1 parent da0c7e5 commit ff133b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

astrocut/make_cube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def _write_info_table(self):
719719
cube_hdus.append(table_hdu)
720720

721721

722-
def update_cube(self, file_list, cube_file, sector=None, max_memory=50, verbose=True):
722+
def _update_cube(self, file_list, cube_file, sector=None, max_memory=50, verbose=True):
723723
""" Updates an existing cube file if one has already been made and a new delivery is being appended to it.
724724
Same functionality as make_cube(...), but working on an already existing file rather than building a new one.
725725
This function will:

astrocut/tests/test_make_cube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_make_and_update_cube(tmpdir):
9292

9393
# Testing update_cube
9494

95-
cube_file = cube_maker.update_cube(ffi_files[num_im // 2:], cube_file, verbose=False)
95+
cube_file = cube_maker._update_cube(ffi_files[num_im // 2:], cube_file, verbose=False)
9696

9797
hdu = fits.open(cube_file)
9898
cube = hdu[1].data

0 commit comments

Comments
 (0)