Replies: 2 comments
-
How about using a different directory depending on SECTIONS or STATES and have config data in that dir that also includes an index of the regions (so that would no longer be hard coded in the constants src file...) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Possible. There would be a lot of file duplication though since only 8 states have split sections. But I agree on doing it a better way than the data in constants.pyIn TR4W we use a DOM file that lists the multipliers ( sections, states, if AK and HI is a state or a country for the contest). Then the program just references the DOM file. Here is an example: https://github.com/n4af/TR4W/blob/master/tr4w/target/dom/arrlsect.domOn Jan 11, 2025, at 4:28 PM, Jeff Otterson ***@***.***> wrote:
How about using a different directory depending on SECTIONS or STATES and have config data in that dir that also includes an index of the regions (so that would no longer be hard coded in the constants src file...)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I finally took another look at combining shapes. One would think it would be trivial to find downloadable shapes for every system, but I could not figure out how to get them. So after doing some searching, I stumbled upon something called geopanda. That Python module lets one merge shapefiles. Hence the following code works to merge the 9 California sections into a single one. You still get the boundary lines but it let light up a state en mass.
Beta Was this translation helpful? Give feedback.
All reactions