diff --git a/examples/data/cow_tutorial/Tutorial.ipynb b/examples/data/cow_tutorial/Tutorial.ipynb index fb70ad4d7db1fce92399b931045b1e04d90da826..9dbade1a5ddb41ed4af5493339b955a092c25d74 100644 --- a/examples/data/cow_tutorial/Tutorial.ipynb +++ b/examples/data/cow_tutorial/Tutorial.ipynb @@ -303,7 +303,7 @@ "\n", "\n", "class Timeseries(MSection):\n", - " year = Quantity(type=np.int, shape=['*'])\n", + " year = Quantity(type=np.int32, shape=['*'])\n", " value = Quantity(type=np.float64, shape=['*'])" ] }, @@ -959,7 +959,7 @@ "\n", "\n", "class Timeseries(MSection):\n", - " year = Quantity(type=np.int, shape=['*'])\n", + " year = Quantity(type=np.int32, shape=['*'])\n", " value = Quantity(type=np.float64, shape=['*'])\n", "\n", "\n", diff --git a/examples/data/cow_tutorial/nomad-countries/src/nomad_countries/parsers/country.py b/examples/data/cow_tutorial/nomad-countries/src/nomad_countries/parsers/country.py index 735da39023e0314ff34489f6645f461d5afea21d..1fb09907c2024671390bead669678a911d82859e 100644 --- a/examples/data/cow_tutorial/nomad-countries/src/nomad_countries/parsers/country.py +++ b/examples/data/cow_tutorial/nomad-countries/src/nomad_countries/parsers/country.py @@ -70,6 +70,6 @@ class CountryParser(MatchingParser): return None return Timeseries( - year=[year for year, _ in data[indicator]], - value=[value for _, value in data[indicator]], + year=[int(year) for year, _ in data[indicator]], + value=[float(value) for _, value in data[indicator]], ) diff --git a/examples/data/cow_tutorial/nomad-countries/src/nomad_countries/schema_packages/country.py b/examples/data/cow_tutorial/nomad-countries/src/nomad_countries/schema_packages/country.py index ed76486137b8c5d2f2bd47ca7c07950603da5008..bcc04bda9d3227c88b958b7d525f8591a3cc5dd8 100644 --- a/examples/data/cow_tutorial/nomad-countries/src/nomad_countries/schema_packages/country.py +++ b/examples/data/cow_tutorial/nomad-countries/src/nomad_countries/schema_packages/country.py @@ -9,7 +9,7 @@ m_package = Package(name='Countries of the World') class Timeseries(MSection): - year = Quantity(type=np.int, shape=['*']) + year = Quantity(type=np.int32, shape=['*']) value = Quantity(type=np.float64, shape=['*'])