Skip to content

Commit

Permalink
Remove unused diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben committed Jan 21, 2025
1 parent b7e6ac8 commit 877e79b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
3 changes: 0 additions & 3 deletions userCode/odwr/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@ class Attributes(BaseModel):
air_temp_min_available: int
precipitation_available: int

class Config:
populate_by_name = True


class StationData(BaseModel, extra="forbid"):
attributes: Attributes
Expand Down
12 changes: 0 additions & 12 deletions userCode/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from dagster import RunFailureSensorContext, get_dagster_logger
import hashlib
import os
from uuid import UUID


def get_env(key: str) -> str:
Expand Down Expand Up @@ -70,17 +69,6 @@ def from_oregon_datetime(date_str: str, fmt: str = "%m/%d/%Y %I:%M:%S %p") -> da
tzinfo=datetime.timezone.utc
)

def make_uuid(input: str) -> str:
"""
helper function to make uuid
:param input: string of source
:param raw: bool of str casting
:returns: str of resulting uuid
"""
_uuid = UUID(hex=hashlib.md5(input.encode('utf-8')).hexdigest())
return str(_uuid)

def url_join(*parts: str) -> str:
"""
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 877e79b

Please sign in to comment.