Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Aug 6, 2024
1 parent 4aa43f1 commit 7611375
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions covjsonkit/encoder/encoder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from abc import ABC, abstractmethod

import orjson
from covjson_pydantic.coverage import CoverageCollection
from covjson_pydantic.domain import DomainType

from covjsonkit.param_db import get_param_ids, get_params, get_units
Expand Down Expand Up @@ -36,9 +37,11 @@ def __init__(self, type, domaintype):
elif domaintype == "path":
self.domaintype = "Trajectory"

# self.pydantic_coverage = CoverageCollection(
# type=type, coverages=[], domainType=self.domaintype, parameters={}, referencing=[]
# )
# Trajectory not yet implemented in covjson-pydantic
if self.domaintype != "Trajectory":
self.pydantic_coverage = CoverageCollection(
type=type, coverages=[], domainType=self.domaintype, parameters={}, referencing=[]
)
self.parameters = []

def add_parameter(self, param):
Expand Down

0 comments on commit 7611375

Please sign in to comment.