Skip to content

Commit

Permalink
fix measurementsorfacts error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Jul 26, 2024
1 parent 91a3ae0 commit bb5b420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metadata_catalogue/datasets/libs/darwincore/mapping.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pathlib
import re

from bs4 import BeautifulSoup
Expand All @@ -8,7 +9,7 @@

class SourceLayer:
def __init__(self, node, base_path, extension=False) -> None:
self.type = node["rowType"].split("/")[-1].lower()
self.type = pathlib.Path(node.find("location").text).stem

self.path = base_path / node.find("location").text
if not self.path.is_file():
Expand Down

0 comments on commit bb5b420

Please sign in to comment.