Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
79feff2
Add a table_type element to OGD table schema.
LswaN58 Dec 2, 2024
e0b81f1
Create shell files for each of the main classes we want, and add basi…
LswaN58 Dec 2, 2024
2b06cb0
Add placeholder abstract method for updateFromFeatureData to Model ba…
LswaN58 Dec 2, 2024
6dc740d
Add basic implementation to PopulationModel.
LswaN58 Dec 2, 2024
1617ff1
Set up placeholder for KMeansModel class.
LswaN58 Dec 2, 2024
8679740
Add some WIP code for model manager, copied from feature mgr.
LswaN58 Jan 23, 2025
22426c8
Merge branch 'master' into feature/modeling-pipeline
LswaN58 Jan 23, 2025
5919901
Missed most of the changes in last commit.
LswaN58 Jan 23, 2025
ba6718b
Merge branch 'master' into issue/245-update-to-use-ogd-common-2.0
LswaN58 Mar 13, 2025
6d1baa9
Merge branch 'main' into feature/modeling-pipeline
LswaN58 May 19, 2025
4768c87
modeling code
vijayrampatel Jun 20, 2025
0a8b488
modeling code
vijayrampatel Jun 20, 2025
9bc70ea
Add bit of code to run session features to the model manager.
LswaN58 Jun 20, 2025
ba2e235
pipeline fixed
vijayrampatel Jun 26, 2025
b841a99
Add first draft of average phosphorus time feature.
LswaN58 Apr 29, 2025
cbbf75e
Rename AveragePhosphorusTime -> AveragePhosphorusViewTime.
LswaN58 Apr 29, 2025
896e10b
Remove unused imports.
LswaN58 Apr 29, 2025
9986c55
Add initial AverageEconomyViewTime as well.
LswaN58 Apr 29, 2025
8e17ede
Remove Subfeatures implementation, that was a copy-paste issue.
LswaN58 Apr 29, 2025
591e748
Add the view time averagers to the schema template.
LswaN58 Apr 29, 2025
9e9e7e6
Remove graph that was previously added by mistake.
LswaN58 Jul 3, 2025
db45432
Add the view time average-ers to init and loader.
LswaN58 Apr 29, 2025
05a3096
Remove unused imports.
LswaN58 Apr 29, 2025
f528a95
Merge branch 'main' into feature/modeling-pipeline
LswaN58 Jul 5, 2025
82df03a
logic changed to bloom
vijayrampatel Jul 3, 2025
dc95390
bloom working kmeans
vijayrampatel Jul 10, 2025
46d68b0
new player level model
vijayrampatel Jul 14, 2025
495b737
When getting FeatureData collection, get both 1st- and 2nd-order feat…
LswaN58 Jul 15, 2025
e9f6c7f
In KMeansModel, we should be checking feature.ExportMode, not Extract…
LswaN58 Jul 15, 2025
741896d
Merge branch 'main' into feature/modeling-pipeline
LswaN58 Jul 21, 2025
bfc90a6
adding files
vijayrampatel Jul 17, 2025
14ddd1b
player level model
vijayrampatel Jul 17, 2025
b2cc2ea
logistic regression model
vijayrampatel Jul 21, 2025
43a9013
integrating logistic model
vijayrampatel Jul 21, 2025
8b7094f
removed print statements
vijayrampatel Jul 21, 2025
00e5fec
removed print statements
vijayrampatel Jul 21, 2025
a450971
removed comment statements
vijayrampatel Jul 21, 2025
e20bee6
created different processor
vijayrampatel Jul 21, 2025
e9845df
Merge branch 'main' into feature/modeling-pipeline
LswaN58 Aug 1, 2025
da52e25
Update import paths for generator configs.
LswaN58 Aug 1, 2025
237228f
Merge branch 'main' into issue/245-update-to-use-ogd-common-2.0
LswaN58 Aug 1, 2025
f23ab60
Update import paths for generator configs.
LswaN58 Aug 1, 2025
955b9e2
Update Aqualab features to import Feature, rather than FeatureData.
LswaN58 Aug 1, 2025
509ca98
Update Bloom features to import Feature, rather than FeatureData.
LswaN58 Aug 1, 2025
ee57c4b
Update VR game features to import Feature, rather than FeatureData.
LswaN58 Aug 1, 2025
a84fb8b
Oops, should have included ICECUBE as VR game that now imports Feature.
LswaN58 Aug 1, 2025
acd359c
Update Jo, Lakeland, and Headlines features to import Feature, rather…
LswaN58 Aug 1, 2025
624ce06
Finally, set Shadowspect features to import Feature, rather than Feat…
LswaN58 Aug 1, 2025
5195578
Now, make Aqualab, Bloom, Jo, and Lakeland features import Extractor,…
LswaN58 Aug 1, 2025
b821914
Do the same for VR games.
LswaN58 Aug 1, 2025
6030302
Do similar for Waves, Crystal, Magnet, Headlines, and Shipwrecks.
LswaN58 Aug 1, 2025
be5a5b4
Missed Magnet loader in last commit.
LswaN58 Aug 1, 2025
e5109d1
Huh, missed shipwrecks in last commit too. Also, do shadowspect.
LswaN58 Aug 1, 2025
754a85e
Make sure all Aqualab, Bloom, and Shipwrecks features inherit from Ex…
LswaN58 Aug 1, 2025
95c0b6c
Make sure WAVES and LAKELAND features only inherit from Extractor.
LswaN58 Aug 1, 2025
9fb6f35
Missed a couple in Waves due to not accounting for non-alphabetic cha…
LswaN58 Aug 1, 2025
fb8cc35
Add init files for the configs and generators folders.
LswaN58 Aug 1, 2025
2658ee6
Update loaders to return extractors, not 'features'.
LswaN58 Aug 1, 2025
119c93d
Across all features that had comment blocks, replace use of Feature w…
LswaN58 Aug 1, 2025
d730bfa
Finally, starting with Aqualab and Bloom, set _updateFromFeature func…
LswaN58 Aug 1, 2025
1a5b4ab
Do the same for the VR games.
LswaN58 Aug 1, 2025
3872ada
Now do for Jo, Lakeland, and Waves.
LswaN58 Aug 1, 2025
11795a4
Update FeatureData -> Feature in Shipwrecks and Headlines.
LswaN58 Aug 1, 2025
956f16f
And finally, do it for shadowspect.
LswaN58 Aug 1, 2025
085ddc1
For this branch, update ogd-common requirement.
LswaN58 Aug 1, 2025
d323390
Update path to access JSON loading.
LswaN58 Aug 1, 2025
2b5292e
Back in core, need to update name of function to reflect that we're u…
LswaN58 Aug 1, 2025
9d6e61d
In loader classes, use GeneratorCollectionConfig, in place of old Gam…
LswaN58 Aug 1, 2025
b31f766
Do the same thing in base GeneratorLoader, and rename the variable we…
LswaN58 Aug 1, 2025
478d5c1
Nicer formatting.
LswaN58 Aug 1, 2025
4ae58be
Rename parameters to generator_config as well, across loader subclasses.
LswaN58 Aug 1, 2025
3a4dbb2
Make sure we're not using a _max_level from generator configs.
LswaN58 Aug 1, 2025
2724ac4
Do the same for Aqualab.
LswaN58 Aug 1, 2025
a9dceb7
Update LegacyFeature to use generator collections as well.
LswaN58 Aug 1, 2025
e28a3e4
Turns out a couple of loaders imported the loadJSONFile function dire…
LswaN58 Aug 1, 2025
bfe3aa4
Set other various things in generators folder to always inherit from …
LswaN58 Aug 1, 2025
6aee8f4
Anywhere in generators, use Feature instead of FeatureData.
LswaN58 Aug 1, 2025
919e747
Way back a couple dozen commits ago, missed a fix to import generator…
LswaN58 Aug 2, 2025
8307f47
Some cleanups and updated imports in managers.
LswaN58 Aug 2, 2025
7716d09
Use Feature instead of FeatureData in registries.
LswaN58 Aug 2, 2025
7d8744d
Same thing for processors.
LswaN58 Aug 2, 2025
6911100
Some cleanups and import adjustments for the ExportManager.
LswaN58 Aug 2, 2025
c49ae33
Update how we import base interface/outerface, and add property for a…
LswaN58 Aug 2, 2025
2f5d7f1
Corresponding cleanup of which props of request we use in ExportManager.
LswaN58 Aug 2, 2025
e378ada
Start work on imports and such for Request class.
LswaN58 Aug 4, 2025
55c3a77
Further work on updating Request to work with latest ogd-common.
LswaN58 Aug 5, 2025
ea72d55
Merge branch 'main' into issue/245-update-to-use-ogd-common-2.0
LswaN58 Aug 5, 2025
77430b1
Remove old table schema templates, they've been moved to common.
LswaN58 Aug 5, 2025
95d399a
Move old schemas/configs folder out to main configs folder.
LswaN58 Aug 5, 2025
872820c
Start working to get CoreConfig class working with new common class o…
LswaN58 Aug 5, 2025
46b09cc
Rename ConfigSchema.py -> CoreConfig.py.
LswaN58 Aug 5, 2025
596edbf
Fix an import mistake.
LswaN58 Aug 5, 2025
c360bbc
Remove LegacyConfigSchema, now is the time to clear out any old configs.
LswaN58 Aug 5, 2025
3cb0909
Bring CoreConfig up to standard.
LswaN58 Aug 5, 2025
6a30bab
Have CoreConfig link up all its mapping schemas to the actual store a…
LswaN58 Aug 5, 2025
a132552
Get request class just about done with updates.
LswaN58 Aug 5, 2025
7255912
logistic regression changes
vijayrampatel Jul 28, 2025
f78cb2c
removed comments
vijayrampatel Aug 5, 2025
8a5a18f
Use typing util to address weird linting issue for unions of date types.
LswaN58 Aug 5, 2025
811f9f6
Merge branch 'issue/245-update-to-use-ogd-common-2.0' into feature/mo…
LswaN58 Aug 5, 2025
74c1616
Missed change in merge.
LswaN58 Aug 5, 2025
6ff5364
Fix for something missed in merge.
LswaN58 Aug 5, 2025
2ef7640
remove comments
vijayrampatel Aug 7, 2025
92e175f
model config
vijayrampatel Aug 7, 2025
7b5f307
A few tweaks to main to correctly use CoreConfig.
LswaN58 Aug 8, 2025
22c7bd4
Work in progress towards getting Commands up with new library version.
LswaN58 Aug 8, 2025
2337090
Adjust import path for Readme, to where it's going to be.
LswaN58 Aug 10, 2025
01fbec5
Merge branch 'main' into issue/245-update-to-use-ogd-common-2.0
LswaN58 Aug 10, 2025
aa90254
Fix an import.
LswaN58 Aug 11, 2025
4d5b271
Get a couple of the commands updated with latest locations and naming…
LswaN58 Aug 11, 2025
53229bc
Finish replacing all occurrences of ConfigSchema with CoreConfig.
LswaN58 Aug 11, 2025
01167fc
Various search-and-replaces to get corrected names and import paths o…
LswaN58 Aug 11, 2025
d269833
Various fixes to CoreConfig classs.
LswaN58 Aug 11, 2025
44b2e6c
Replace uses of DataOuterface with Outerface.
LswaN58 Aug 11, 2025
b923bae
Some WIP stuff for handling exec-side.
LswaN58 Aug 11, 2025
5011dde
Significant work on the use of request and other updated classes in E…
LswaN58 Aug 11, 2025
a9953b5
A couple more little tweaks to ExportManager.
LswaN58 Aug 11, 2025
6b9eefc
Clean up imports, including from common, in Processor base class.
LswaN58 Aug 11, 2025
8951fc4
Remove one more unused import.
LswaN58 Aug 11, 2025
fd19ad3
Add Events prop for EventProcessor, and maintain an EventSet rather t…
LswaN58 Aug 11, 2025
3b95f70
Get EventManager up with latest imports and structures.
LswaN58 Aug 11, 2025
046fe08
Remove an unused import.
LswaN58 Aug 11, 2025
2a0f663
Turn GetColumnNames into a ColumnNames prop.
LswaN58 Aug 11, 2025
45e0d85
Remove a couple old comments for a to-do, it's been turned into GH is…
LswaN58 Aug 11, 2025
838fdbb
Remove old as_str param, wasn't actually used anymore.
LswaN58 Aug 11, 2025
6efca2b
Update ExportManager to use refactored EventManager, and stuff from c…
LswaN58 Aug 11, 2025
935f511
Remove use of as_str in ExportManager, too.
LswaN58 Aug 11, 2025
c1f743c
Turn most getters in FeatureManager into props.
LswaN58 Aug 11, 2025
01f890b
Make SessionLines a prop too, and don't require slice info anymore.
LswaN58 Aug 11, 2025
2b0fb07
Missed changes to ExportManager in last commit.
LswaN58 Aug 11, 2025
f2a4e67
Update GeneratorProcessor base class.
LswaN58 Aug 11, 2025
f29f711
Update ExtractorRegistry to use newer names of things.
LswaN58 Aug 11, 2025
6040d76
Work towards updating processors to newest stuff from common.
LswaN58 Aug 11, 2025
fda9d95
Work towards removing all uses of GameSchema.
LswaN58 Aug 11, 2025
5722dc3
Further work to get naming and imports in order.
LswaN58 Aug 11, 2025
2617d1b
Finish work to make processors and registries use GeneratorCollection…
LswaN58 Aug 11, 2025
218f737
ModelProcesso needed just a little more work to get set up right.
LswaN58 Aug 11, 2025
5f6b22a
A copule more places to update use of GeneratorCollectionConfig inste…
LswaN58 Aug 11, 2025
8db613b
A couple updates for type consistency.
LswaN58 Aug 11, 2025
85461bf
Remove legacy 'Feature' class that was alias for Extractor.
LswaN58 Aug 11, 2025
5ae83cf
Significant work on renaming uses of Feature to Extractor.
LswaN58 Aug 11, 2025
7e91523
Fixes for the ToFeature function of Extractor.
LswaN58 Aug 11, 2025
e698652
Rename ToFeature -> GetFeature, for consistency.
LswaN58 Aug 11, 2025
b35abef
Rename GetFeature -> GetFeatures, since it's returning a list.
LswaN58 Aug 11, 2025
f3a30a5
Some fixes for params, too.
LswaN58 Aug 11, 2025
8192dd5
Resolve naming conflict.
LswaN58 Aug 11, 2025
95d6a5b
Missed changes in earlier commit.
LswaN58 Aug 11, 2025
4400000
Fix how processors retrieve feature values.
LswaN58 Aug 11, 2025
b1b1f17
Rename ProcessFeature -> ProcessFeatures
LswaN58 Aug 11, 2025
3c33c62
Make ExtractorProcessor return FeatureSets, and take app_id as input.
LswaN58 Aug 11, 2025
89885c4
Remove empty to-string.
LswaN58 Aug 11, 2025
0eab69c
Add the map and collection stuff to init.
LswaN58 Aug 11, 2025
4d6c5b8
Progress on fixing up FeatureManager.
LswaN58 Aug 11, 2025
7b5f278
Fix for missing type in requests.
LswaN58 Aug 11, 2025
f3ff03b
Make it possible to get all feature orders together.
LswaN58 Aug 11, 2025
03b5b11
Slightly move forward on the _try_update.
LswaN58 Aug 11, 2025
8d9502f
Comment out broken to-string.
LswaN58 Aug 11, 2025
ef502a7
Forgot to remove Feature class when we deleted it.
LswaN58 Aug 11, 2025
916f59f
Better handling of getting feature value from Extractor.
LswaN58 Aug 11, 2025
b6d2212
Remove a lot of the annoyance of trying to give features an app ID.
LswaN58 Aug 11, 2025
5744eee
Fix import paths for GeneratorCollectionConfig.
LswaN58 Aug 11, 2025
488d3e1
Get the try_update mess sorted for FeatureManager.
LswaN58 Aug 11, 2025
a721032
Fix up remaining redline errors in ExportManager.
LswaN58 Aug 11, 2025
5acd337
Fix one redliner that was hiding from me.
LswaN58 Aug 11, 2025
3d56cf0
Fix up the GenDateRange, which we rename to GenDateFilter.
LswaN58 Aug 12, 2025
39ff442
Settle most of the re-working of RunExport, just a couple configs lef…
LswaN58 Aug 12, 2025
f0caaa4
Remove old interface-factory-style function from Generators, we've go…
LswaN58 Aug 12, 2025
71b7844
Finish setting up request in the RunExport function.
LswaN58 Aug 12, 2025
5c3cc58
Huh, apparently forgot to add _fromDict, and Python never stopped me.
LswaN58 Aug 12, 2025
ac7c7ec
Implement _fromDict and Default in the CoreConfig.
LswaN58 Aug 12, 2025
8d26d82
Use different name for the input that sets the 'from' target.
LswaN58 Aug 12, 2025
3625b49
Work on bug in getting file destination location.
LswaN58 Aug 12, 2025
14aab2e
Handle time-based range with DatasetKey.
LswaN58 Aug 13, 2025
fe65b00
Work towards fixing the date filter generation stuff.
LswaN58 Aug 13, 2025
e4b301e
Pass parsed dates to FromDateRange function.
LswaN58 Aug 13, 2025
f942831
When setting up a config, pass in config name to ParseElement.
LswaN58 Aug 13, 2025
36041ff
Fill in elements of the source and dest default configs.
LswaN58 Aug 13, 2025
fbaed28
Have DetectorEvents actually tae app_branch param.
LswaN58 Aug 14, 2025
44e4150
Make Detector pass along an app branch, too. Not sure how this all sl…
LswaN58 Aug 14, 2025
1c9d52a
Update places where we were trying to use self.ExtractionMode, it's n…
LswaN58 Aug 14, 2025
0b02162
Update features to use feature.Values instead of longer, legacy featu…
LswaN58 Aug 14, 2025
1311cd4
Fix for trying to instantiate a base class.
LswaN58 Aug 14, 2025
7de4795
Fix some indentation and control structure ordering in FeatureManager.
LswaN58 Aug 14, 2025
be43c1b
Working towards better setup for default config.
LswaN58 Aug 14, 2025
c1c4104
Working towards nicer construction of Requests.
LswaN58 Aug 14, 2025
5d35904
Nicer organization, and start working to have better defaults.
LswaN58 Aug 14, 2025
e4075df
More cleanups and such.
LswaN58 Aug 14, 2025
d1a0fdc
Since Request is dropping feature overrides, always pass in None for …
LswaN58 Aug 14, 2025
d90c0e9
Work towards getting Commands.py up to speed with adjustments to Requ…
LswaN58 Aug 14, 2025
b1dee76
Finish adjusting other things to match with improved Request class.
LswaN58 Aug 14, 2025
76a4271
Various bits of work towards making this all run nicely.
LswaN58 Aug 14, 2025
dad96d6
Merge branch 'feature/modeling-pipeline' of github.com:opengamedata/o…
LswaN58 Aug 14, 2025
2b5898b
Merge branch 'issue/245-update-to-use-ogd-common-2.0' into feature/mo…
LswaN58 Aug 14, 2025
c5b3890
integrated model config
vijayrampatel Aug 7, 2025
eb352cb
commiting local changes
vijayrampatel Aug 15, 2025
e4fdc2d
working code for the 2.0
vijayrampatel Aug 18, 2025
4f78445
Merge branch 'main' into feature/modeling-pipeline
LswaN58 Nov 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added cluster_radar_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 38 additions & 30 deletions config/config.py.template
Original file line number Diff line number Diff line change
Expand Up @@ -58,40 +58,48 @@ settings = {
"SSH_USER": "WCER AD User",
"SSH_PASS": "WCER AD Password",
"SSH_PORT": 22
},
"LOCAL_FILE": {

}
},
"GAME_SOURCE_MAP":
{
"ALL_YOU_CAN_ET": { "source":"OPENGAMEDATA_BQ", "database":"all_you_can_et", "table":"all_you_can_et_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"AQUALAB": { "source":"OPENGAMEDATA_BQ", "database":"aqualab", "table":"aqualab_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"BACTERIA": { "source":"OPENGAMEDATA_BQ", "database":"bacteria", "table":"bacteria_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"BALLOON": { "source":"OPENGAMEDATA_BQ", "database":"balloon", "table":"balloon_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"BLOOM": { "source":"OPENGAMEDATA_BQ", "database":"bloom", "table":"bloom_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"CENSIO_MATCH": { "source":"OPENGAMEDATA_BQ", "database":"censio_match", "table":"censio_match_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"CENSIO_SLIDE": { "source":"OPENGAMEDATA_BQ", "database":"censio_slide", "table":"censio_slide_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"CENSIO_STACK": { "source":"OPENGAMEDATA_BQ", "database":"censio_stack", "table":"censio_stack_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"CRUSH_STATION": { "source":"OPENGAMEDATA_BQ", "database":"crush_station", "table":"crush_station_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"CRYSTAL": { "source":"OPENGAMEDATA_BQ", "database":"crystal", "table":"crystal_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"CYCLE_CARBON": { "source":"OPENGAMEDATA_BQ", "database":"cycle_carbon", "table":"cycle_carbon_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"CYCLE_NITROGEN": { "source":"OPENGAMEDATA_BQ", "database":"cycle_nitrogen", "table":"cycle_nitrogen_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"CYCLE_WATER": { "source":"OPENGAMEDATA_BQ", "database":"cycle_water", "table":"cycle_water_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"EARTHQUAKE": { "source":"OPENGAMEDATA_BQ", "database":"earthquake", "table":"earthquake_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"GWAKKAMOLE": { "source":"OPENGAMEDATA_BQ", "database":"gwakkamole", "table":"earthquake_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"ICECUBE": { "source":"OPENGAMEDATA_BQ", "database":"icecube", "table":"icecube_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"JOURNALISM": { "source":"OPENGAMEDATA_BQ", "database":"journalism", "table":"journalism_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"JOWILDER": { "source":"OPENGAMEDATA_BQ", "database":"jowilder", "table":"jowilder_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"LAKELAND": { "source":"OPENGAMEDATA_BQ", "database":"lakeland", "table":"lakeland_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"MAGNET": { "source":"OPENGAMEDATA_BQ", "database":"magnet", "table":"magnet_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"MASHOPOLIS": { "source":"OPENGAMEDATA_BQ", "database":"mashopolis", "table":"mashopolis_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"PENGUINS": { "source":"OPENGAMEDATA_BQ", "database":"penguins", "table":"penguins_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"ALL_YOU_CAN_ET": {
"events_from" : { "source":"OPENGAMEDATA_BQ", "table_schema":"OPENGAMEDATA_BIGQUERY" , "database":"all_you_can_et", "table":"all_you_can_et_daily" },
"events_to" : { "source":"OPENGAMEDATA_BQ", "table_schema":"OPENGAMEDATA_BIGQUERY", "database":"all_you_can_et", "table":"all_you_can_et_daily" },
"feats_from" : { "source":"OPENGAMEDATA_BQ", "table_schema":"OPENGAMEDATA_BIGQUERY", "database":"all_you_can_et", "table":"all_you_can_et_daily" },
"feats_to" : { "source":"OPENGAMEDATA_BQ", "table_schema":"OPENGAMEDATA_BIGQUERY", "database":"all_you_can_et", "table":"all_you_can_et_daily" },
},
"AQUALAB": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"aqualab", "table":"aqualab_daily" },
"BACTERIA": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"bacteria", "table":"bacteria_daily" },
"BALLOON": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"balloon", "table":"balloon_daily" },
"BLOOM": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"bloom", "table":"bloom_daily" },
"CENSIO_MATCH": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"censio_match", "table":"censio_match_daily" },
"CENSIO_SLIDE": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"censio_slide", "table":"censio_slide_daily" },
"CENSIO_STACK": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"censio_stack", "table":"censio_stack_daily" },
"CRUSH_STATION": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"crush_station", "table":"crush_station_daily" },
"CRYSTAL": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"crystal", "table":"crystal_daily" },
"CYCLE_CARBON": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"cycle_carbon", "table":"cycle_carbon_daily" },
"CYCLE_NITROGEN": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"cycle_nitrogen", "table":"cycle_nitrogen_daily" },
"CYCLE_WATER": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"cycle_water", "table":"cycle_water_daily" },
"EARTHQUAKE": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"earthquake", "table":"earthquake_daily" },
"GWAKKAMOLE": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"gwakkamole", "table":"earthquake_daily" },
"ICECUBE": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"icecube", "table":"icecube_daily" },
"JOURNALISM": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"journalism", "table":"journalism_daily" },
"JOWILDER": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"jowilder", "table":"jowilder_daily" },
"LAKELAND": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"lakeland", "table":"lakeland_daily" },
"MAGNET": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"magnet", "table":"magnet_daily" },
"MASHOPOLIS": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"mashopolis", "table":"mashopolis_daily" },
"PENGUINS": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"penguins", "table":"penguins_daily" },
"PENNYCOOK": { "source":"OPENGAMEDATA_BQ", "database":"pennycook", "table":"pennycook_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"SHADOWSPECT": { "source":"OPENGAMEDATA_BQ", "database":"shadowspect", "table":"shadowspect_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"SHIPWRECKS": { "source":"SHIPWRECKS_BQ", "database":"analytics_269167605", "table":"events", "schema":"FIREBASE" },
"THERMOVR": { "source":"OPENGAMEDATA_BQ", "database":"thermovr", "table":"thermovr_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"THERMOLAB": { "source":"OPENGAMEDATA_BQ", "database":"thermolab", "table":"thermolab_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"TRANSFORMATION_QUEST": { "source":"OPENGAMEDATA_BQ", "database":"transformation_quest", "table":"transformation_quest_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"WAVES": { "source":"OPENGAMEDATA_BQ", "database":"waves", "table":"waves_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"WEATHER_STATION": { "source":"OPENGAMEDATA_BQ", "database":"weather_station", "table":"weather_station_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"WIND": { "source":"OPENGAMEDATA_BQ", "database":"wind", "table":"wind_daily", "schema":"OPENGAMEDATA_BIGQUERY" },
"SHADOWSPECT": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"shadowspect", "table":"shadowspect_daily" },
"SHIPWRECKS": { "source":"SHIPWRECKS_BQ", "schema":"FIREBASE", "database":"analytics_269167605", "table":"events" },
"THERMOVR": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"thermovr", "table":"thermovr_daily" },
"THERMOLAB": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"thermolab", "table":"thermolab_daily" },
"TRANSFORMATION_QUEST": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"transformation_quest", "table":"transformation_quest_daily" },
"WAVES": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"waves", "table":"waves_daily" },
"WEATHER_STATION": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"weather_station", "table":"weather_station_daily" },
"WIND": { "source":"OPENGAMEDATA_BQ", "schema":"OPENGAMEDATA_BIGQUERY", "database":"wind", "table":"wind_daily" },
},
}
14 changes: 6 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# import standard libraries
import cProfile
import pstats
#import datetime
import argparse
import os
import sys
from argparse import Namespace
from pathlib import Path
from typing import List

# import 3rd-party libraries

Expand All @@ -18,30 +17,29 @@
from src.ogd import games
from src.ogd.core.exec.Commands import OGDCommands
from src.ogd.core.exec.Parsers import OGDParsers
from src.ogd.core.schemas.configs.ConfigSchema import ConfigSchema
from src.ogd.core.configs.CoreConfig import CoreConfig


## This section of code is what runs main itself. Just need something to get it
# started.
config = ConfigSchema(name="config.py", all_elements=settings)
config = CoreConfig.FromDict(name="config.py", unparsed_elements=settings)
Logger.InitializeLogger(level=config.DebugLevel, use_logfile=config.UseLogFile)
# Logger.Log(f"Running {sys.argv[0]}...", logging.INFO)
# set up parent parsers with arguments for each class of command
games_folder : Path = Path(games.__file__) if Path(games.__file__).is_dir() else Path(games.__file__).parent
games_list = [name.upper() for name in os.listdir(games_folder) if (os.path.isdir(games_folder / name) and name != "__pycache__")]
games_folder : Path = Path(games.__file__) if Path(games.__file__).is_dir() else Path(games.__file__).parent
games_list : List[str] = [name.upper() for name in os.listdir(games_folder) if (os.path.isdir(games_folder / name) and name != "__pycache__")]
# set up main parser, with one sub-parser per-command.
parser = OGDParsers.CommandParser(games_list=games_list)

args : Namespace = parser.parse_args()


success : bool
if config.WithProfiling:
profiler = cProfile.Profile()
profiler.enable()
if args is not None:
cmd = (args.command or "help").lower()
dest = Path(args.destination if args.destination != "" else "./") if 'destination' in args else config.DataDirectory
dest = Path(args.destination if args.destination != "" else config.DataDirectory) if 'destination' in args else config.DataDirectory
match cmd:
case "export":
success = OGDCommands.RunExport(args=args, config=config, destination=dest, with_events=True, with_features=True)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy==2.1.*
pandas==2.2.*
opengamedata-common==1.2.*
opengamedata-common==2.0.*
Loading
Loading