python-holidays icon indicating copy to clipboard operation
python-holidays copied to clipboard

Add Seychelles holidays

Open arkid15r opened this issue 2 years ago • 6 comments

Links:

  • https://en.wikipedia.org/wiki/Public_holidays_in_Seychelles
  • https://www.timeanddate.com/holidays/seychelles/
  • https://www.cbs.sc/PublicHolidays.html

arkid15r avatar Jun 03 '23 00:06 arkid15r

I'm working on this one, here's the actual Public Holidays Act.

PPsyrius avatar Dec 22 '23 07:12 PPsyrius

Thanks a lot, @PPsyrius!

arkid15r avatar Dec 22 '23 18:12 arkid15r

@arkid15r Would it be possible to use subdivisions_aliases to aggregate subdivisions?

i.e.

subdivisions_aliases = {
  07: "Inner Islands"
  14: "Inner Islands"
  15: "Inner Islands"
  26: "Outer Islands"
}

PPsyrius avatar Mar 01 '24 05:03 PPsyrius

@arkid15r Would it be possible to use subdivisions_aliases to aggregate subdivisions?

i.e.

subdivisions_aliases = {
  07: "Inner Islands"
  14: "Inner Islands"
  15: "Inner Islands"
  26: "Outer Islands"
}

Not sure about this one. I checked available subdivisions here -- https://www.iso.org/obp/ui/#iso:code:3166:SC The aliases would work for mapping names to numeric codes, e,g, Anse Boileau: "02"

It sounds like you're looking for some problem solution? Please add context details if you have any.

arkid15r avatar Mar 01 '24 16:03 arkid15r

@arkid15r Would it be possible to use subdivisions_aliases to aggregate subdivisions? i.e.

subdivisions_aliases = {
  07: "Inner Islands"
  14: "Inner Islands"
  15: "Inner Islands"
  26: "Outer Islands"
}

Not sure about this one. I checked available subdivisions here -- https://www.iso.org/obp/ui/#iso:code:3166:SC The aliases would work for mapping names to numeric codes, e,g, Anse Boileau: "02"

It sounds like you're looking for some problem solution? Please add context details if you have any.

From what I understand Seychelles election take 3 days: the first day on Outer Islands, then Inner Islands, and the main island Mahé itself - as these dates has no rigid rules each subdivision need to be coded as special_public_holidays discretely. One of these cases "Inner Islands" has 3 subdivisions, so I would like to lessen code duplications here if possible.

PPsyrius avatar Mar 04 '24 06:03 PPsyrius

From what I understand Seychelles election take 3 days: the first day on Outer Islands, then Inner Islands, and the main island Mahé itself - as these dates has no rigid rules each subdivision need to be coded as special_public_holidays discretely. One of these cases "Inner Islands" has 3 subdivisions, so I would like to lessen code duplications here if possible.

Yeah, now I have better understanding of the subject. Unfortunately, subdivisions aliases mapping is on a higher abstraction level. I don't think it'll help you minimize code duplication. Maybe some common method to invoke for each subdivision?

arkid15r avatar Mar 05 '24 04:03 arkid15r