From e10ecb928727ff736f438cc4ad7777c8ac0bf1dc Mon Sep 17 00:00:00 2001
From: Alex Wernle <awernle@usgs.gov>
Date: Wed, 27 Nov 2024 11:21:33 -0700
Subject: [PATCH] Pydantic v2 requires model_dump

---
 geomagio/algorithm/MetadataAlgorithm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geomagio/algorithm/MetadataAlgorithm.py b/geomagio/algorithm/MetadataAlgorithm.py
index 5fc87c68..027e753d 100644
--- a/geomagio/algorithm/MetadataAlgorithm.py
+++ b/geomagio/algorithm/MetadataAlgorithm.py
@@ -72,7 +72,7 @@ class MetadataAlgorithm(BaseModel):
             created_by=created_by,
             starttime=starttime,
             endtime=endtime,
-            metadata=metadata_class(**metadata_dict),
+            metadata=(metadata_class(**metadata_dict)).model_dump(),
             network=network,
             channel=channel,
             location=location,
-- 
GitLab