|
12 | 12 | "metadata": {},
|
13 | 13 | "source": [
|
14 | 14 | "Prior to running this script, make sure the following are installed within your Python environment:\n",
|
15 |
| - " - boto3\n", |
| 15 | + " - boto3, botocore\n", |
16 | 16 | " - numpy\n",
|
17 | 17 | " - matplotlib\n",
|
18 | 18 | " - h5pyd\n",
|
|
24 | 24 | },
|
25 | 25 | {
|
26 | 26 | "cell_type": "code",
|
27 |
| - "execution_count": 8, |
| 27 | + "execution_count": 2, |
28 | 28 | "metadata": {},
|
29 | 29 | "outputs": [],
|
30 | 30 | "source": [
|
31 |
| - "import boto3, os, logging\n", |
| 31 | + "import boto3, os, logging, botocore\n", |
32 | 32 | "import numpy as np\n",
|
33 | 33 | "import matplotlib.pyplot as plt\n",
|
34 | 34 | "from scipy import signal\n",
|
|
39 | 39 | "import h5pyd\n",
|
40 | 40 | "\n",
|
41 | 41 | "boto3.set_stream_logger('boto3', logging.INFO)\n",
|
42 |
| - "s3 = boto3.resource('s3')\n", |
| 42 | + "s3 = boto3.resource('s3', config=botocore.client.Config(signature_version=botocore.UNSIGNED))\n", |
43 | 43 | "bucket = s3.Bucket('nrel-pds-hsds')\n",
|
44 | 44 | "cwd = os.getcwd()"
|
45 | 45 | ]
|
|
53 | 53 | },
|
54 | 54 | {
|
55 | 55 | "cell_type": "code",
|
56 |
| - "execution_count": 6, |
| 56 | + "execution_count": 3, |
57 | 57 | "metadata": {
|
58 | 58 | "scrolled": true
|
59 | 59 | },
|
60 | 60 | "outputs": [
|
61 | 61 | {
|
62 | 62 | "data": {
|
63 | 63 | "text/plain": [
|
64 |
| - "{'ResponseMetadata': {'RequestId': '408073FE346B8221',\n", |
65 |
| - " 'HostId': 'cu7AuOjMxEI8oLbj1fMiSxVFOP7woDXu+VbpicxQ0f9cYuovdi175W4jPJmNCUXvsFWKmKSCFpo=',\n", |
| 64 | + "{'ResponseMetadata': {'RequestId': '41AK815ERAZ456EB',\n", |
| 65 | + " 'HostId': 'oW6gdElqQAqgVCpX8ieiDDZ+8PXMkegpYK199p+vEBmV1fMp3Y8PKHaZ83A98gThIV7eEtW6m58UGnUFe0PWhg==',\n", |
66 | 66 | " 'HTTPStatusCode': 200,\n",
|
67 |
| - " 'HTTPHeaders': {'x-amz-id-2': 'cu7AuOjMxEI8oLbj1fMiSxVFOP7woDXu+VbpicxQ0f9cYuovdi175W4jPJmNCUXvsFWKmKSCFpo=',\n", |
68 |
| - " 'x-amz-request-id': '408073FE346B8221',\n", |
69 |
| - " 'date': 'Tue, 22 Sep 2020 01:26:46 GMT',\n", |
| 67 | + " 'HTTPHeaders': {'x-amz-id-2': 'oW6gdElqQAqgVCpX8ieiDDZ+8PXMkegpYK199p+vEBmV1fMp3Y8PKHaZ83A98gThIV7eEtW6m58UGnUFe0PWhg==',\n", |
| 68 | + " 'x-amz-request-id': '41AK815ERAZ456EB',\n", |
| 69 | + " 'date': 'Thu, 14 Dec 2023 18:52:43 GMT',\n", |
70 | 70 | " 'x-amz-bucket-region': 'us-west-2',\n",
|
| 71 | + " 'x-amz-access-point-alias': 'false',\n", |
71 | 72 | " 'content-type': 'application/xml',\n",
|
72 |
| - " 'server': 'AmazonS3',\n", |
73 |
| - " 'connection': 'close'},\n", |
74 |
| - " 'RetryAttempts': 0}}" |
| 73 | + " 'server': 'AmazonS3'},\n", |
| 74 | + " 'RetryAttempts': 0},\n", |
| 75 | + " 'BucketRegion': 'us-west-2',\n", |
| 76 | + " 'AccessPointAlias': False}" |
75 | 77 | ]
|
76 | 78 | },
|
77 |
| - "execution_count": 6, |
| 79 | + "execution_count": 3, |
78 | 80 | "metadata": {},
|
79 | 81 | "output_type": "execute_result"
|
80 | 82 | }
|
|
93 | 95 | },
|
94 | 96 | {
|
95 | 97 | "cell_type": "code",
|
96 |
| - "execution_count": 10, |
| 98 | + "execution_count": 4, |
97 | 99 | "metadata": {},
|
98 | 100 | "outputs": [
|
99 | 101 | {
|
|
102 | 104 | "29"
|
103 | 105 | ]
|
104 | 106 | },
|
105 |
| - "execution_count": 10, |
| 107 | + "execution_count": 4, |
106 | 108 | "metadata": {},
|
107 | 109 | "output_type": "execute_result"
|
108 | 110 | }
|
|
522 | 524 | {
|
523 | 525 | "cell_type": "code",
|
524 | 526 | "execution_count": 14,
|
525 |
| - "metadata": { |
526 |
| - "scrolled": false |
527 |
| - }, |
| 527 | + "metadata": {}, |
528 | 528 | "outputs": [
|
529 | 529 | {
|
530 | 530 | "data": {
|
|
550 | 550 | {
|
551 | 551 | "cell_type": "code",
|
552 | 552 | "execution_count": 15,
|
553 |
| - "metadata": { |
554 |
| - "scrolled": false |
555 |
| - }, |
| 553 | + "metadata": {}, |
556 | 554 | "outputs": [
|
557 | 555 | {
|
558 | 556 | "data": {
|
|
602 | 600 | {
|
603 | 601 | "cell_type": "code",
|
604 | 602 | "execution_count": 17,
|
605 |
| - "metadata": { |
606 |
| - "scrolled": false |
607 |
| - }, |
| 603 | + "metadata": {}, |
608 | 604 | "outputs": [
|
609 | 605 | {
|
610 | 606 | "data": {
|
|
692 | 688 | {
|
693 | 689 | "cell_type": "code",
|
694 | 690 | "execution_count": 20,
|
695 |
| - "metadata": { |
696 |
| - "scrolled": false |
697 |
| - }, |
| 691 | + "metadata": {}, |
698 | 692 | "outputs": [
|
699 | 693 | {
|
700 | 694 | "name": "stdout",
|
|
830 | 824 | ],
|
831 | 825 | "metadata": {
|
832 | 826 | "kernelspec": {
|
833 |
| - "display_name": "Python 3", |
| 827 | + "display_name": "Python 3 (ipykernel)", |
834 | 828 | "language": "python",
|
835 | 829 | "name": "python3"
|
836 | 830 | },
|
|
844 | 838 | "name": "python",
|
845 | 839 | "nbconvert_exporter": "python",
|
846 | 840 | "pygments_lexer": "ipython3",
|
847 |
| - "version": "3.7.4" |
| 841 | + "version": "3.11.4" |
848 | 842 | }
|
849 | 843 | },
|
850 | 844 | "nbformat": 4,
|
851 |
| - "nbformat_minor": 2 |
| 845 | + "nbformat_minor": 4 |
852 | 846 | }
|
0 commit comments