Closed mosoriob closed 4 years ago
Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.
mic wrapper already copies any config files (defined by configs command) into the src folder.
chris@chris-ubuntu20:/home/chris/Desktop/tests/configTest (master)$ mic encapsulate configs config.json
Automatically found mic.yaml in /home/chris/Desktop/tests/configTest/mic/mic.yaml
Added: /home/chris/Desktop/tests/configTest/config.json as a configuration file
chris@chris-ubuntu20:/home/chris/Desktop/tests/configTest (master)$ mic encapsulate wrapper
Automatically found mic.yaml in /home/chris/Desktop/tests/configTest/mic/mic.yaml
Generating the MIC Wrapper. This generates the directory structure and commands required to run your model
Copying the code: linemodel.py to the MIC Wrapper directory mic/src
Copying the config: config.json to the MIC Wrapper directory mic/src
Success
The wrapper has been generated. You can see it at /home/chris/Desktop/tests/configTest/mic/src/run
The next step is `mic encapsulate run`
The command run is going to create a new directory (execution directory), and MIC is going the inputs, code, and configuration files and run the model.
For more information, you can type.
mic encapsulate run --help
chris@chris-ubuntu20:/home/chris/Desktop/tests/configTest (master)$ tree
.
├── config.json
├── LICENSE
├── linemodel.py
├── mic
│ ├── data
│ │ ├── config.json
│ │ └── x.csv
│ ├── docker
│ │ ├── Dockerfile
│ │ ├── entrypoint.sh
│ │ └── requirements.txt
│ ├── mic.yaml
│ └── src
│ ├── config.json
│ ├── io.sh
│ ├── linemodel.py
│ ├── output.sh
│ └── run
├── README.md
├── results
│ └── y.csv
└── x.csv
5 directories, 17 files
Wow. The swat model configuration is outdated Thanks
On Mon, Jul 13, 2020, 3:33 PM Christopher Heidelberg < notifications@github.com> wrote:
mic wrapper already copies any config files (defined by configs command) into the src folder.
chris@chris-ubuntu20:/home/chris/Desktop/tests/configTest (master)$ mic encapsulate configs config.json
Automatically found mic.yaml in /home/chris/Desktop/tests/configTest/mic/mic.yaml
Added: /home/chris/Desktop/tests/configTest/config.json as a configuration file
chris@chris-ubuntu20:/home/chris/Desktop/tests/configTest (master)$ mic encapsulate wrapper
Automatically found mic.yaml in /home/chris/Desktop/tests/configTest/mic/mic.yaml
Generating the MIC Wrapper. This generates the directory structure and commands required to run your model
Copying the code: linemodel.py to the MIC Wrapper directory mic/src
Copying the config: config.json to the MIC Wrapper directory mic/src
Success
The wrapper has been generated. You can see it at /home/chris/Desktop/tests/configTest/mic/src/run
The next step is
mic encapsulate run
The command run is going to create a new directory (execution directory), and MIC is going the inputs, code, and configuration files and run the model.
For more information, you can type.
mic encapsulate run --help
chris@chris-ubuntu20:/home/chris/Desktop/tests/configTest (master)$ tree
.
├── config.json
├── LICENSE
├── linemodel.py
├── mic
│ ├── data
│ │ ├── config.json
│ │ └── x.csv
│ ├── docker
│ │ ├── Dockerfile
│ │ ├── entrypoint.sh
│ │ └── requirements.txt
│ ├── mic.yaml
│ └── src
│ ├── config.json
│ ├── io.sh
│ ├── linemodel.py
│ ├── output.sh
│ └── run
├── README.md
├── results
│ └── y.csv
└── x.csv
5 directories, 17 files
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mintproject/mic/issues/255#issuecomment-657826482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASBUJUK5OX3CXACE4P3AIDR3ODTVANCNFSM4OYZGPGQ .
If a user selects a file as a configuration file, then the file must be copied into the src directory because it contains the variable.