LeoZhangzaolin commited on
Commit
18e3316
1 Parent(s): 54776a7

Update Graptolodiea-Speciemens-Imaging.py

Browse files
Files changed (1) hide show
  1. Graptolodiea-Speciemens-Imaging.py +29 -29
Graptolodiea-Speciemens-Imaging.py CHANGED
@@ -12,19 +12,35 @@ from PIL import Image
12
  import ast
13
 
14
  _CITATION = """\
15
- 111
16
- """
 
 
 
 
 
 
17
 
18
  _DESCRIPTION = """\
19
- [Your dataset description here...]
 
 
20
  """
21
 
22
  _HOMEPAGE = "https://zenodo.org/records/6194943"
23
- _license = "111"
24
 
25
- class GraptoloideaSpecimensDataset(datasets.GeneratorBasedBuilder):
26
- _URL = "https://raw.githubusercontent.com/LeoZhangzaolin/photos/main/Final_GS_with_Images5.csv"
 
27
 
 
 
 
 
 
 
 
 
28
  def _info(self):
29
  return datasets.DatasetInfo(
30
  description=_DESCRIPTION,
@@ -34,17 +50,18 @@ class GraptoloideaSpecimensDataset(datasets.GeneratorBasedBuilder):
34
  "Infraorder": datasets.Value("string"),
35
  "Family (Subfamily)": datasets.Value("string"),
36
  "Genus": datasets.Value("string"),
37
- "Tagged Species Name": datasets.Value("string"),
38
- "Image": datasets.Value("string"),
39
  "Stage": datasets.Value("string"),
40
- "Mean Age Value": datasets.Value("float64"),
41
  "Locality (Longitude, Latitude, Horizon)": datasets.Value("string"),
42
- "Reference (Specimens Firstly Published)": datasets.Value("string"),
43
  }
44
  ),
45
  supervised_keys=None,
46
  homepage=_HOMEPAGE,
47
- citation=_CITATION,
 
48
  )
49
 
50
  def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
@@ -78,7 +95,7 @@ class GraptoloideaSpecimensDataset(datasets.GeneratorBasedBuilder):
78
  ]
79
 
80
  def _generate_examples(self, filepath):
81
- """This function returns the examples from the CSV file."""
82
  logging.info("generating examples from = %s", filepath)
83
  with open(filepath, encoding='utf-8') as f:
84
  reader = csv.DictReader(f)
@@ -111,20 +128,3 @@ class GraptoloideaSpecimensDataset(datasets.GeneratorBasedBuilder):
111
  "Reference (specimens firstly published)": reference,
112
  }
113
 
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
 
12
  import ast
13
 
14
  _CITATION = """\
15
+ @dataset{Xu2022graptolitespecimens
16
+ title = {High-resolution images of 1550 Ordovician to Silurian graptolite specimens for global correlation and shale gas exploration},
17
+ author = {Honghe Xu},
18
+ year = {2022},
19
+ url = {https://zenodo.org/records/6194943},
20
+ publisher = {Zenodo}
21
+ }
22
+ """
23
 
24
  _DESCRIPTION = """\
25
+ This dataset includes high-quality images of specimens, each meticulously tagged with taxonomic details such as suborder, infraorder, family, and genus.
26
+ Additionally, the dataset is enriched with crucial metadata like the geological stage, mean age value, and specific locality coordinates (longitude, latitude, and horizon).
27
+ References to original specimen publications are also provided, ensuring comprehensive documentation for academic rigor.
28
  """
29
 
30
  _HOMEPAGE = "https://zenodo.org/records/6194943"
 
31
 
32
+ _LICENSE = "CC BY 4.0"
33
+
34
+ _URL = "https://raw.githubusercontent.com/LeoZhangzaolin/photos/main/Final_GS_with_Images5.csv"
35
 
36
+ class GraptoloideaSpecimensDataset(datasets.GeneratorBasedBuilder):
37
+ """This dataset script retrives my processed dataset. It stands as a vital resource for researchers and enthusiasts in the field of paleontology
38
+ , particularly those focusing on graptolites. Its compilation not only aids in the study of these fascinating creatures but also contributes
39
+ significantly to our understanding of Earth's biological and geological past.
40
+ """
41
+ _URL = _URL
42
+ VERSION = datasets.Version("1.1.0")
43
+
44
  def _info(self):
45
  return datasets.DatasetInfo(
46
  description=_DESCRIPTION,
 
50
  "Infraorder": datasets.Value("string"),
51
  "Family (Subfamily)": datasets.Value("string"),
52
  "Genus": datasets.Value("string"),
53
+ "tagged species name": datasets.Value("string"),
54
+ "image": datasets.Value("string"),
55
  "Stage": datasets.Value("string"),
56
+ "mean age value": datasets.Value("float64"),
57
  "Locality (Longitude, Latitude, Horizon)": datasets.Value("string"),
58
+ "Reference (specimens firstly published)": datasets.Value("string"),
59
  }
60
  ),
61
  supervised_keys=None,
62
  homepage=_HOMEPAGE,
63
+ license = _LICENSE,
64
+ citation=_CITATION
65
  )
66
 
67
  def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
 
95
  ]
96
 
97
  def _generate_examples(self, filepath):
98
+ """This function returns the examples."""
99
  logging.info("generating examples from = %s", filepath)
100
  with open(filepath, encoding='utf-8') as f:
101
  reader = csv.DictReader(f)
 
128
  "Reference (specimens firstly published)": reference,
129
  }
130