Skip to content

Commit

Permalink
chore: Update environment processing
Browse files Browse the repository at this point in the history
  • Loading branch information
perceptualrobots committed Aug 19, 2024
1 parent beeb153 commit 505cc6b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
4 changes: 4 additions & 0 deletions nbs/05_environments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2044,6 +2044,10 @@
"display_name": "python3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.9.13"
}
},
"nbformat": 4,
Expand Down
36 changes: 23 additions & 13 deletions nbs/16_environment_processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -25,7 +25,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -34,7 +34,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -50,7 +50,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -77,7 +77,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -252,7 +252,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -282,7 +282,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -390,7 +390,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -461,7 +461,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -491,7 +491,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -539,6 +539,8 @@
" if environment_properties is None:\n",
" environment_properties, en = PCTRunProperties.get_environment_properties(root=drive, env='ARC', property_dir=property_dir, property_file=file)\n",
" environment_properties['dataset'] = 'test'\n",
" if 'index' in environment_properties:\n",
" environment_properties['index'] = 0\n",
" print(environment_properties)\n",
"\n",
" enhanced_environment_properties = self.enhanced_environment_properties(environment_properties=environment_properties)\n",
Expand Down Expand Up @@ -606,7 +608,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand All @@ -630,7 +632,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -642,7 +644,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -665,7 +667,15 @@
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
}
},
Expand Down
2 changes: 2 additions & 0 deletions pct/environment_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ def results(self, filepath=None, experiment=None):
if environment_properties is None:
environment_properties, en = PCTRunProperties.get_environment_properties(root=drive, env='ARC', property_dir=property_dir, property_file=file)
environment_properties['dataset'] = 'test'
if 'index' in environment_properties:
environment_properties['index'] = 0
print(environment_properties)

enhanced_environment_properties = self.enhanced_environment_properties(environment_properties=environment_properties)
Expand Down

0 comments on commit 505cc6b

Please sign in to comment.