Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "No type set for period" / "No period found for code" #33

Closed
roger-mahler opened this issue Dec 19, 2019 · 1 comment
Closed
Assignees
Labels
data-error Incorrect data in SEAD

Comments

@roger-mahler
Copy link
Collaborator

This is a known problem.

select "YearsType", count(*)
from "TPeriods"
group by "YearsType" 
YearsType Count
C14 53
Calendar 34
(null) 24
Radiometric 4
? 1
Calender 6
    public static AgeUpdater getUpdater(RelativeAge original, Period period){
        if(period.getYearsType() != null ){
            switch (period.getYearsType()){
                case "Calendar":
                case "calendar":
                case "Calender":
                case "calender": return new CalendarAgeUpdater(original, period);
                case "C14":
                case "c14":
                case "Radiometric":
                case "radiometric": return new C14AgeUpdater(original, period);
            }
        }
        return new UndeterminedAgeUpdater(original, period);
    }
@roger-mahler roger-mahler self-assigned this Dec 19, 2019
@roger-mahler roger-mahler transferred this issue from humlab-sead/sead_change_control Dec 20, 2019
@roger-mahler
Copy link
Collaborator Author

Closing in favor of #43.

@roger-mahler roger-mahler added the data-error Incorrect data in SEAD label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-error Incorrect data in SEAD
Projects
None yet
Development

No branches or pull requests

1 participant