Skip to content

test_mosaic.py: update to reflect changes to mosaicobj#49

Open
hderry wants to merge 39 commits intomlee03:mainfrom
hderry:make_mosaic
Open

test_mosaic.py: update to reflect changes to mosaicobj#49
hderry wants to merge 39 commits intomlee03:mainfrom
hderry:make_mosaic

Conversation

@hderry
Copy link
Collaborator

@hderry hderry commented Jun 5, 2025

Minor changes to ensure test_mosaic.py passes

Halle Derry and others added 30 commits January 7, 2025 16:00
- created the main program for make_mosaic with rough outline
- began outlining my ctypes wrapper for get_contact and created shared library to test function access
- created a draft of MosaicStruct and will make a proper unit test
        - xarray vs netcdf4 package: unsure which is more suitable for mosaic file creation, may benefit mor
e from low-level interface, memory management, ... I can switch to xarray if needed and for uniformity.

i#
-Removed contact library
-fixed typo in make_mosaic.py
MosaicObj
-Switched from netcdf4 to xarray package
-used post_init to populate gridfiles and ntiles -> read_mosaic method & created file pointer for future use
-implemented class method for generating grid dictionary -> need to work on making nested dict accessible
… additional changes in the future)

-new directory for make_mosaic under pyfrenctools and ctypes wrapper for make_solo_mosaic (need to pull from pyFMS)
-inital test file for mosaicobj and make_mosaic
 *type hint functions in make_mosaic.py
- Implemented subcommands with Click groups… with each subcommand having its own module
- Updated test_mosaic.py to utilize CliRunner for testing click applications
-remove conversion of lists to np.arrays -> change to be refected on mosaicobj side as well.
-use tile names directly in solo_mosaic
making new instance in solo_mosaic > grid = MosaicObj(args).griddict()
@hderry hderry requested review from fmalatino, mlee03 and rem1776 June 5, 2025 15:27
@mlee03
Copy link
Owner

mlee03 commented Jun 9, 2025

@hderry, carrying on our conversation here, after the tests pass with pytest, we'll merge it in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants