Skip to content

Commit d81f72f

Browse files
committed
style: ✏️ Change user_system to host_info
1 parent 7b8b27e commit d81f72f

10 files changed

+19
-20
lines changed

Diff for: .pylintrc

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[MAIN]
22

3+
# Add file to the whitelist. It should be a base name, not a path.
4+
extension-pkg-whitelist=pydantic
5+
36
# Specify a configuration file.
47
#rcfile=
58

Diff for: Examples/example_5_summary.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@
120120
},
121121
"timestamp": "2021-10-20 14:33:29",
122122
"ID": "79235c7d-b033-4c72-b052-68944448e96f",
123-
"user_name": "user_name",
124-
"user_system": "user_system",
123+
"host_info": "host_info",
125124
"used_version": "0.6.0",
126125
"data_statistic": {
127126
"Energy": {

Diff for: Examples/example_6_summary.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@
9898
},
9999
"timestamp": "2021-11-05 19:01:15",
100100
"ID": "5453056f-95d4-41b4-adeb-830ecedc0064",
101-
"user_name": "user_name",
102-
"user_system": "user_system",
101+
"host_info": "host_info",
103102
"used_version": "0.6.0",
104103
"data_statistic": {
105104
"energy": [

Diff for: Examples/example_7_summary.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
"conf_interval": null,
5050
"timestamp": "2021-11-17 19:48:35",
5151
"ID": "e63be393-7f06-4a8d-87f6-1a82eafcefe8",
52-
"user_name": "user_name",
53-
"user_system": "user_system",
52+
"host_info": "host_info",
5453
"used_version": "0.7.0",
5554
"data_statistic": {
5655
"Energy": [

Diff for: Examples/example_8_summary.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@
216216
},
217217
"timestamp": "2022-06-26 12:35:11",
218218
"ID": "e5c7fc20-bd57-4578-abbf-7736cef3be9b",
219-
"user_name": "user_name",
220-
"user_system": "user_system",
219+
"host_info": "host_info",
221220
"used_version": "0.9.0",
222221
"data_statistic": {
223222
"0": [

Diff for: Examples/example_8_summary.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ version = false
1717
verbose = 0
1818
timestamp = "2022-06-26 12:35:11"
1919
ID = "e5c7fc20-bd57-4578-abbf-7736cef3be9b"
20-
user_name = "user_name"
21-
user_system = "user_system"
20+
host_info = "host_info"
21+
host_info = "host_info"
2222
used_version = "0.9.0"
2323

2424
[description]

Diff for: docs/interface/features.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ different types of output files will be generated
231231
{
232232
"timestamp": "2021-08-22 12:33:26",
233233
"ID": "89b1a4ef-320a-4ac0-80da-e8d946b00e13",
234-
"user_name": "user_name",
235-
"user_system": "user_system",
234+
"host_info": "host_info",
235+
"host_info": "host_info",
236236
"used_version": "0.3.0",
237237
}
238238
```
@@ -455,8 +455,8 @@ different types of output files will be generated
455455
},
456456
"timestamp": "2021-08-19 21:08:57",
457457
"ID": "ce43d306-43e4-4350-9f09-fd1b13064f39",
458-
"user_name": "username",
459-
"user_system": "user_system",
458+
"host_info": "username",
459+
"host_info": "host_info",
460460
"used_version": "0.2.0",
461461
"data_statistic": {
462462
"0": {

Diff for: docs/plugins/file-converter.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ With the command `spectrafit-file-converter` input and also output files can be
253253
},
254254
"timestamp": "2022-06-26 12:35:11",
255255
"ID": "e5c7fc20-bd57-4578-abbf-7736cef3be9b",
256-
"user_name": "user_name",
257-
"user_system": "user_system",
256+
"host_info": "host_info",
257+
"host_info": "host_info",
258258
"used_version": "0.9.0",
259259
"data_statistic": {
260260
"0": [
@@ -1471,8 +1471,8 @@ With the command `spectrafit-file-converter` input and also output files can be
14711471
verbose = 0
14721472
timestamp = "2022-06-26 12:35:11"
14731473
ID = "e5c7fc20-bd57-4578-abbf-7736cef3be9b"
1474-
user_name = "user_name"
1475-
user_system = "user_system"
1474+
host_info = "host_info"
1475+
host_info = "host_info"
14761476
used_version = "0.9.0"
14771477

14781478
[description]

Diff for: docs/plugins/jupyter-interface.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ accidental overwriting of the input file. The `.lock`-suffix can be replaced.
239239
"https://github.com/Anselmoo/spectrafit",
240240
]
241241
version = "0.12.0b0"
242-
user_system = "vscode@codespaces-c3ab6e"
242+
host_info = "vscode@codespaces-c3ab6e"
243243
timestamp = "2022-10-05 18:29:35"
244244
id_ = "563e6d71-d872-4e63-85aa-6780a4fd8cb0"
245245

Diff for: spectrafit/api/cmd_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class DescriptionAPI(BaseModel):
4444
description="References for the project",
4545
)
4646
version: str = __version__
47-
user_system: str = f"{getuser()}@{gethostname()}"
47+
host_info: str = f"{getuser()}@{gethostname()}"
4848
timestamp: str = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
4949
id_: str = Field(
5050
default=str(uuid4()), alias="id", description="Unique ID of the project"

0 commit comments

Comments
 (0)