Skip to content

Commit 560b8d3

Browse files
fix some bugs
1 parent 118f275 commit 560b8d3

7 files changed

Lines changed: 7 additions & 4 deletions

File tree

.DS_Store

-6 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ This will automatically install all necessary libraries to ensure the system run
4444
- requests==2.31.0
4545
- jenkspy==0.4.0
4646
- pyecharts==2.0.4
47+
- global_land_mask==1.0.0
4748

4849
# StarPerf overview and processing flow
4950

StarPerf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,5 @@ def main():
6969

7070

7171
if __name__ == '__main__':
72-
import samples.standalone_module.standalone_module_test_cases as standalone_module_test_cases
73-
74-
standalone_module_test_cases.standalone_module_test_cases()
72+
main()
7573

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ astropy==5.3.3
1111
networkx==3.1
1212
requests==2.31.0
1313
jenkspy==0.4.0
14-
pyecharts==2.0.4
14+
pyecharts==2.0.4
15+
global_land_mask==1.0.0

src/constellation_generation/by_TLE/constellation_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def constellation_configuration(dT , constellation_name):
3737
# determine whether the .h5 file of the delay and satellite position data of the current constellation exists. If
3838
# it exists, delete the file and create an empty .h5 file. If it does not exist, directly create an empty .h5 file.
3939
file_path = "data/TLE_constellation/" + constellation_name + ".h5"
40+
os.makedirs(os.path.dirname(file_path), exist_ok=True)
4041
if os.path.exists(file_path):
4142
# if the .h5 file exists, delete the file
4243
os.remove(file_path)

src/constellation_generation/by_XML/constellation_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def constellation_configuration(dT , constellation_name):
5454
# determine whether the .h5 file of the delay and satellite position data of the current constellation exists. If
5555
# it exists, delete the file and create an empty .h5 file. If it does not exist, directly create an empty .h5 file.
5656
file_path = "data/XML_constellation/" + constellation_name + ".h5"
57+
os.makedirs(os.path.dirname(file_path), exist_ok=True)
5758
if os.path.exists(file_path):
5859
# if the .h5 file exists, delete the file
5960
os.remove(file_path)

src/constellation_generation/by_duration/constellation_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def constellation_configuration(duration, dT, constellation_name, shell_index=1)
5757
# determine whether the .h5 file of the delay and satellite position data of the current constellation exists. If
5858
# it exists, delete the file and create an empty .h5 file. If it does not exist, directly create an empty .h5 file.
5959
file_path = "data/XML_constellation/" + constellation_name + "_shell" + str(shell_index)+ ".h5"
60+
os.makedirs(os.path.dirname(file_path), exist_ok=True)
6061
if os.path.exists(file_path):
6162
# if the .h5 file exists, delete the file
6263
os.remove(file_path)

0 commit comments

Comments
 (0)