Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unet Prototype & Pipeline #54

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Unet Prototype & Pipeline #54

wants to merge 18 commits into from

Conversation

JuLieAlgebra
Copy link
Member

Not ready for review, but wanted to track progress here and make my work more visible for everyone else to utilize/look at

…sed targets, finished prototype of jitted metric functions
… work for binary ice/no ice netcdf based target
…tebook, collected all visualization functions into visualization module, added additional descriptions and documentation.
…anization and documentation improvements. Added plots for understanding filename to day/year relationship
…lculation, as there is shared computation in both metrics
…s and loss objects. Initial model prediction visualization
…ensorflow added as project dependency. Now can add models directly to packages
@BGory
Copy link
Collaborator

BGory commented Apr 12, 2024

Hi Julieanna, for the functions to be OS indepedent, the split functions should have os.path.sep as shown here:

    def years_from_filenames(self) -> list[int]:
         years = [
            int(file.split(os.path.sep)[-1].split("ims")[1][:4]) for file in self.filenames
        ]
        return years

    def days_from_filenames(self) -> list[int]:
        days = [int(file.split(os.path.sep)[-1].split("_")[0][-3:]) for file in self.filenames]
        return days

Once I made that change, your code ran perfectly on Windows!

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.

2 participants